X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-text-file.c;fp=src%2Fui%2Fgui%2Fpsppire-text-file.c;h=ea74fefee373ffb49dba8369440c3db404eb13db;hb=f814726c9e2aecebf9f7da423f6990263b3dedf9;hp=7460104c504cb1f0115c49f58b77ba2351586154;hpb=f8504efd479510c47be6dc2992e06e537b1649e4;p=pspp diff --git a/src/ui/gui/psppire-text-file.c b/src/ui/gui/psppire-text-file.c index 7460104c50..ea74fefee3 100644 --- a/src/ui/gui/psppire-text-file.c +++ b/src/ui/gui/psppire-text-file.c @@ -41,11 +41,13 @@ enum PROP_LINE_COUNT }; -enum {MAX_LINE_LEN = 16384}; /* Max length of an acceptable line. */ static void read_lines (PsppireTextFile *tf) { + /* Max length of an acceptable line. */ + static const int MAX_LINE_LEN = 16384; + if (tf->file_name && 0 != g_strcmp0 ("unset", tf->encoding)) { struct line_reader *reader = line_reader_for_file (tf->encoding, tf->file_name, O_RDONLY);