* Fixed a bug in both cp and mv preventing 'cp foo/README bar'
type commands (file in a directory to another directory)
from working.
+ * Fixed a logger bug that caused garbage to be written to the syslog
+ (unless you used busybox syslog, which hid the bug). Thanks
+ to Alex Holden <alex@linuxhacker.org> for the fix.
-Erik Andersen,
if (toStdErrFlag==TRUE)
fprintf(stderr, "%s\n", buf);
- write( fd, buf, sizeof(buf));
+ write( fd, buf, strlen(buf)+1);
close(fd);
exit( TRUE);
if (toStdErrFlag==TRUE)
fprintf(stderr, "%s\n", buf);
- write( fd, buf, sizeof(buf));
+ write( fd, buf, strlen(buf)+1);
close(fd);
exit( TRUE);