diff options
Diffstat (limited to 'src/PSEditor.cxx')
-rw-r--r-- | src/PSEditor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx index 665adfc..a2df43f 100644 --- a/src/PSEditor.cxx +++ b/src/PSEditor.cxx @@ -110,7 +110,7 @@ int PSEditor::handle(int event) { } -int PSEditor::load(FILE *fp) { +int PSEditor::open_file(FILE *fp) { if (tmp_fd) { close(tmp_fd); } @@ -122,11 +122,11 @@ int PSEditor::load(FILE *fp) { } else { mod = 0; loaded = 1; - return GsWidget::load(tmp_fd); + return GsWidget::open_file(tmp_fd); } } -int PSEditor::load(const char *f) { +int PSEditor::open_file(const char *f) { FILE *fp; int ret; @@ -136,7 +136,7 @@ int PSEditor::load(const char *f) { return 1; } - ret = load(fp); + ret = open_file(fp); fclose(fp); return ret; @@ -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); } |