summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/PSEditor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx
index 665adfc..cc620d4 100644
--- a/src/PSEditor.cxx
+++ b/src/PSEditor.cxx
@@ -194,7 +194,7 @@ int PSEditor::import(char *f) {
}
p2 = new PSParser_2(model);
- while (fgets(linebuf, 1024, fp) != NULL) {
+ while (fgets(linebuf, sizeof(linebuf), fp) != NULL) {
p2->parse(linebuf);
}