From 9d93fd766028f7930c9a6b6f15094ebccc36411f Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 22 Jan 2006 18:37:58 +0100 Subject: use sizeof() instead of fixed size --- src/PSEditor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3