File pnm-detect.diff of Package imlib
--- gdk_imlib/load.c
+++ gdk_imlib/load.c
@@ -47,17 +47,17 @@
return 0;
fgets(buf, 8, f);
rewind(f);
- if (!strcmp("P6\n", buf))
+ if (!strcmp("P6", buf))
return 1;
- if (!strcmp("P5\n", buf))
+ if (!strcmp("P5", buf))
return 1;
- if (!strcmp("P4\n", buf))
+ if (!strcmp("P4", buf))
return 1;
- if (!strcmp("P3\n", buf))
+ if (!strcmp("P3", buf))
return 1;
- if (!strcmp("P2\n", buf))
+ if (!strcmp("P2", buf))
return 1;
- if (!strcmp("P1\n", buf))
+ if (!strcmp("P1", buf))
return 1;
return 0;
}