editors/patch.c is broken

Nguyen Thai Ngoc Duy pclouds at gmail.com
Tue Jul 31 12:30:45 PDT 2007


src/dest file names are read by xmalloc_fgets which include trailing
\n characters. Therefore patch either reads from wrong source file or
write to wrong destination file. The attached patch should fix it.
I'm not sure about the rest of xmalloc_fgets used in patch, though.
-- 
Duy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-patch-cannot-open-files-because-of-trailing-n.patch
Type: text/x-patch
Size: 1319 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20070731/6fcc9adb/attachment.bin 


More information about the busybox mailing list