mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +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)
|
const char *get_signame(int number)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
static char buf[8];
|
|
||||||
|
|
||||||
for (i=0; i < sizeof(signals) / sizeof(struct signal_name); i++) {
|
for (i=0; i < sizeof(signals) / sizeof(struct signal_name); i++) {
|
||||||
if (number == signals[i].number) {
|
if (number == signals[i].number) {
|
||||||
@ -54,6 +53,5 @@ const char *get_signame(int number)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
itoa_to_buf(number, buf, 8);
|
return itoa(number);
|
||||||
return buf;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user