diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-01-22 18:37:58 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-01-22 18:37:58 +0100 |
commit | 9d93fd766028f7930c9a6b6f15094ebccc36411f (patch) | |
tree | 04e2642749826e66fb3dd1bb1bf725de5b612de9 /src | |
parent | fb3cd1e9f1a985126d0c6a54197ed2ae48a255dd (diff) |
use sizeof() instead of fixed size
Diffstat (limited to 'src')
-rw-r--r-- | src/PSEditor.cxx | 2 |
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); } |