svn commit: trunk/busybox/libbb
vda at busybox.net
vda at busybox.net
Mon Aug 6 08:49:14 PDT 2007
Author: vda
Date: 2007-08-06 08:49:12 -0700 (Mon, 06 Aug 2007)
New Revision: 19414
Log:
bb_uudecode: now this is the more thorough fix... I hope...
Modified:
trunk/busybox/libbb/uuencode.c
Changeset:
Modified: trunk/busybox/libbb/uuencode.c
===================================================================
--- trunk/busybox/libbb/uuencode.c 2007-08-06 15:43:17 UTC (rev 19413)
+++ trunk/busybox/libbb/uuencode.c 2007-08-06 15:49:12 UTC (rev 19414)
@@ -50,9 +50,9 @@
/* Are s[1], s[2] valid or should be assumed 0? */
s1 = s2 = 0;
length -= 3; /* can be >=0, -1, -2 */
- if (length != -2) {
+ if (length >= -1) {
s1 = s[1];
- if (length != -1)
+ if (length >= 0)
s2 = s[2];
}
*p++ = tbl[s[0] >> 2];
More information about the busybox-cvs
mailing list