Created attachment 5236 Fixes distorted task list display caused by erroneous usage of EOF on non-x86 architectures. EOF is 16-bit by definition, but some implementations keep it in the < 255 range, such as x86, which is why it's possible to get away with constructs like the following: for (i = 0; (c = fgetc(file); ++i) { gint i; gchar c; /*Should be 16-bit or larger.*/ ... for (i = 0; (c = fgetc (file)) != EOF && i < (gint)sizeof (task->cmdline) - 1; i++) task->cmdline[i] = (c == '\0') ? ' ' : c; /*Cast c to gchar to shut up some compilers.*/ task->cmdline[i] = '\0'; ... } I have attached a patch that fixes this.
Duplicate of bug 10417? At the patches are almost the same.
Yes, dupe - merging the two bugs. *** This bug has been marked as a duplicate of bug 10417 ***