about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-08-25 05:50:30 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-08-25 05:50:30 +0000
commitce7b20be4fd9cabd1a488930fcafc10de76f7e58 (patch)
tree480623d8dafcc825d8d749d048dc25a3e9c33d18 /converter
parent12b0c5143a3d96d4a0a8077866a82910b86312e0 (diff)
downloadnetpbm-mirror-ce7b20be4fd9cabd1a488930fcafc10de76f7e58.tar.gz
netpbm-mirror-ce7b20be4fd9cabd1a488930fcafc10de76f7e58.tar.xz
netpbm-mirror-ce7b20be4fd9cabd1a488930fcafc10de76f7e58.zip
Use pm_openr() instead of fopen()
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@715 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r--converter/ppm/ppmtoarbtxt.c4
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 */