diff options
author | Denis Vlasenko | 2007-03-14 21:56:51 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-03-14 21:56:51 +0000 |
commit | 75ab6af71edb9e0e919a4e1e65bd7b45da93935b (patch) | |
tree | 678e92bfee8613d9c4c99e3e4f2afc0f0cac3741 /libbb | |
parent | cfa2b3a20984811997b6f7f6fce2ea9b0d53e7f7 (diff) | |
download | busybox-75ab6af71edb9e0e919a4e1e65bd7b45da93935b.zip busybox-75ab6af71edb9e0e919a4e1e65bd7b45da93935b.tar.gz |
stop using (yet another) static buffer
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/u_signal_names.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/u_signal_names.c b/libbb/u_signal_names.c index eb835e9..52861d4 100644 --- a/libbb/u_signal_names.c +++ b/libbb/u_signal_names.c @@ -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); } |