aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/u_signal_names.c4
1 files changed, 1 insertions, 3 deletions
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);
}