mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
stop using (yet another) static buffer
This commit is contained in:
parent
cfa2b3a209
commit
75ab6af71e
@ -46,7 +46,6 @@ int get_signum(const char *name)
|
||||
const char *get_signame(int number)
|
||||
{
|
||||
int i;
|
||||
static char buf[8];
|
||||
|
||||
for (i=0; i < sizeof(signals) / sizeof(struct signal_name); i++) {
|
||||
if (number == signals[i].number) {
|
||||
@ -54,6 +53,5 @@ const char *get_signame(int number)
|
||||
}
|
||||
}
|
||||
|
||||
itoa_to_buf(number, buf, 8);
|
||||
return buf;
|
||||
return itoa(number);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user