summaryrefslogtreecommitdiff
path: root/src/Fl_PNM_Image.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_PNM_Image.cxx')
-rw-r--r--src/Fl_PNM_Image.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_PNM_Image.cxx b/src/Fl_PNM_Image.cxx
index d8f221ecf..d7468b2e1 100644
--- a/src/Fl_PNM_Image.cxx
+++ b/src/Fl_PNM_Image.cxx
@@ -37,6 +37,7 @@
#include <FL/Fl_PNM_Image.H>
#include <stdio.h>
#include <stdlib.h>
+#include <FL/fl_utf8.H>
#include "flstring.h"
@@ -58,7 +59,7 @@ Fl_PNM_Image::Fl_PNM_Image(const char *name) // I - File to read
maxval; // Maximum pixel value
- if ((fp = fopen(name, "rb")) == NULL) return;
+ if ((fp = fl_fopen(name, "rb")) == NULL) return;
//
// Read the file header in the format: