svn commit: trunk/busybox/libbb

vda at busybox.net vda at busybox.net
Wed Mar 14 21:56:52 UTC 2007


Author: vda
Date: 2007-03-14 14:56:51 -0700 (Wed, 14 Mar 2007)
New Revision: 18108

Log:
stop using (yet another) static buffer


Modified:
   trunk/busybox/libbb/u_signal_names.c


Changeset:
Modified: trunk/busybox/libbb/u_signal_names.c
===================================================================
--- trunk/busybox/libbb/u_signal_names.c	2007-03-14 21:55:41 UTC (rev 18107)
+++ trunk/busybox/libbb/u_signal_names.c	2007-03-14 21:56:51 UTC (rev 18108)
@@ -46,7 +46,6 @@
 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 @@
 		}
 	}
 
-	itoa_to_buf(number, buf, 8);
-	return buf;
+	return itoa(number);
 }




More information about the busybox-cvs mailing list