dos2unix has fname_len = strlen(dir) + strlen("/d2utmpXXXXXX"); if (!(fname_str = malloc(fname_len))) goto make_failed; sprintf(fname_str, "%s%s", dir, "/d2utmpXXXXXX"); It forgot the trailing '\0' when mallocing memory. I am attaching a patch.
Created attachment 123680 [details] A patch
Changed product to 'Red Hat Enterprise Linux' (from '... Beta'). Marked as duplicate. *** This bug has been marked as a duplicate of 174016 ***