diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-05-30 03:58:40 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-05-30 03:58:40 +0000 |
commit | 3a89edb7a07c96e24d4e233a7c81df72a6d5fa88 (patch) | |
tree | 6fbda0071b78a3db57c882ea0ebccf380d630385 /converter/other/cameratopam/cameratopam.c | |
parent | aa17eb4f8424ea6548af66c7dbf819aecd399d57 (diff) | |
download | netpbm-mirror-3a89edb7a07c96e24d4e233a7c81df72a6d5fa88.tar.gz netpbm-mirror-3a89edb7a07c96e24d4e233a7c81df72a6d5fa88.tar.xz netpbm-mirror-3a89edb7a07c96e24d4e233a7c81df72a6d5fa88.zip |
Handle failed I/O
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3823 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/cameratopam/cameratopam.c')
-rw-r--r-- | converter/other/cameratopam/cameratopam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/cameratopam/cameratopam.c b/converter/other/cameratopam/cameratopam.c index 78eb6854..d8936f30 100644 --- a/converter/other/cameratopam/cameratopam.c +++ b/converter/other/cameratopam/cameratopam.c @@ -23,7 +23,6 @@ #include <limits.h> #include <math.h> #include <time.h> -#include <stdio.h> #include <stdlib.h> #include <string.h> @@ -47,6 +46,7 @@ #include "bayer.h" #include "foveon.h" #include "dng.h" +#include "stdio_nofail.h" /* All global variables are defined here, and all functions that @@ -233,7 +233,7 @@ fixBadPixels(Image const image) { } free (fname); if (fp) { - while (fgets (line, 128, fp)) { + while (fgets_nofail (line, 128, fp)) { char * cp; cp = strchr (line, '#'); if (cp) *cp = 0; |