svn commit: trunk/busybox/procps

vda at busybox.net vda at busybox.net
Mon Jan 7 16:51:25 UTC 2008


Author: vda
Date: 2008-01-07 08:51:25 -0800 (Mon, 07 Jan 2008)
New Revision: 20811

Log:
ps: fix yet another buglet from recent ulltoa conversion :(



Modified:
   trunk/busybox/procps/ps.c


Changeset:
Modified: trunk/busybox/procps/ps.c
===================================================================
--- trunk/busybox/procps/ps.c	2008-01-07 16:41:41 UTC (rev 20810)
+++ trunk/busybox/procps/ps.c	2008-01-07 16:51:25 UTC (rev 20811)
@@ -187,12 +187,12 @@
 
 static void put_lu(char *buf, int size, unsigned long u)
 {
-	char buf5[5];
+	char buf4[5];
 
 	/* see http://en.wikipedia.org/wiki/Tera */
-	smart_ulltoa4(u, buf5, " mgtpezy");
-	buf5[5] = '\0';
-	sprintf(buf, "%.*s", size, buf5);
+	smart_ulltoa4(u, buf4, " mgtpezy");
+	buf4[4] = '\0';
+	sprintf(buf, "%.*s", size, buf4);
 }
 
 static void func_vsz(char *buf, int size, const procps_status_t *ps)




More information about the busybox-cvs mailing list