mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
38 lines
1.1 KiB
Diff
38 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'. "
|