diff options
-rw-r--r-- | converter/ppm/ppmtoarbtxt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/converter/ppm/ppmtoarbtxt.c b/converter/ppm/ppmtoarbtxt.c index 9817f183..df859c84 100644 --- a/converter/ppm/ppmtoarbtxt.c +++ b/converter/ppm/ppmtoarbtxt.c @@ -341,9 +341,7 @@ read_skeleton(const char * const filename, { if (slen > 0 && (skl[nskl] = save_bin_data(slen,line)) != NULL) ++nskl; \ slen = 0; } - sklfile = fopen(filename,"r"); - if (sklfile == NULL) - return -1; + sklfile = pm_openr(filename); /* Parse skeleton file */ nskl = 0; /* initial value */ |