summaryrefslogtreecommitdiff
path: root/src/PSEditor.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-01-22 18:37:58 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-01-22 18:37:58 +0100
commit9d93fd766028f7930c9a6b6f15094ebccc36411f (patch)
tree04e2642749826e66fb3dd1bb1bf725de5b612de9 /src/PSEditor.cxx
parentfb3cd1e9f1a985126d0c6a54197ed2ae48a255dd (diff)
use sizeof() instead of fixed size
Diffstat (limited to 'src/PSEditor.cxx')
-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);
}