From: Denis Vlasenko Date: Wed, 14 Mar 2007 21:56:51 +0000 (-0000) Subject: stop using (yet another) static buffer X-Git-Tag: 1_5_1~57 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75ab6af71edb9e0e919a4e1e65bd7b45da93935b;p=oweals%2Fbusybox.git stop using (yet another) static buffer --- diff --git a/libbb/u_signal_names.c b/libbb/u_signal_names.c index eb835e936..52861d405 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); }