From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Description of problem: I noticed that durring changing many files using dos2unix tools some files are not converted with message: dos2unix: problems renaming './stcfg/cmd5528/d2utmpTBxaZb ' to './stcfg/cmd5528/reg5528.h' output file remains in './stcfg/cmd5528/d2utmpTBxaZb' dos2unix: problems converting file ./stcfg/cmd5528/reg5528.h Temporary filename created by dos2unix contains some additional spaces or white chars. This problem is caused by wrong allocation size and if size of temporary filename string % 4 == 0 end of this string is overwriten by next allocation :-) Version-Release number of selected component (if applicable): dos2unix-3.1 How reproducible: Sometimes Steps to Reproduce: 1. find . -name *.c - exec {} \; 2. 3. Actual Results: dos2unix: problems renaming './stcfg/cmd5528/d2utmpTBxaZb' to './stcfg/cmd5528/reg5528.h' output file remains in './stcfg/cmd5528/d2utmpTBxaZb' dos2unix: problems converting file ./stcfg/cmd5528/reg5528.h Expected Results: no such messages Additional info:
Created attachment 119414 [details] Patch for this problem This patch corrects wrong maloc call.
*** This bug has been marked as a duplicate of 150277 ***