PKGBUILDs/extra/netpbm/netpbm-10.35-glibc.patch
2009-10-09 21:23:22 -05:00

37 lines
1.1 KiB
Diff

--- converter/ppm/xvminitoppm.c.orig 2009-07-07 22:12:25.000000000 -0400
+++ converter/ppm/xvminitoppm.c 2009-07-07 22:13:22.000000000 -0400
@@ -52,7 +52,7 @@
static void
-getline(FILE * const ifP,
+get_line(FILE * const ifP,
char * const buf,
size_t const size) {
@@ -105,7 +105,7 @@
int rc;
bool endOfComments;
- getline(ifP, buf, sizeof(buf));
+ get_line(ifP, buf, sizeof(buf));
if (!STRNEQ(buf, "P7 332", 6))
pm_error("Input is not a XV thumbnail picture. It does not "
@@ -113,14 +113,14 @@
endOfComments = FALSE;
while (!endOfComments) {
- getline(ifP, buf, sizeof(buf));
+ get_line(ifP, buf, sizeof(buf));
if (STRNEQ(buf, "#END_OF_COMMENTS", 16))
endOfComments = TRUE;
else if (STRNEQ(buf, "#BUILTIN", 8))
pm_error("This program does not know how to "
"convert builtin XV thumbnail pictures");
}
- getline(ifP, buf, sizeof(buf));
+ get_line(ifP, buf, sizeof(buf));
rc = sscanf(buf, "%u %u %u", &cols, &rows, &maxval);
if (rc != 3)
pm_error("error parsing dimension info '%s'. "