diff options
Diffstat (limited to 'src/TextPop.c')
-rw-r--r-- | src/TextPop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TextPop.c b/src/TextPop.c index 9f625b9..00fe7af 100644 --- a/src/TextPop.c +++ b/src/TextPop.c @@ -279,7 +279,7 @@ InsertFileNamed(Widget tw, char *str) pos = XawTextGetInsertionPoint(tw); - fseek(file, 0L, 2); + fseek(file, 0L, SEEK_END); text.firstPos = 0; @@ -287,7 +287,7 @@ InsertFileNamed(Widget tw, char *str) text.ptr = XtMalloc((text.length + 1) * sizeof(unsigned char)); text.format = XawFmt8Bit; - fseek(file, 0L, 0); + fseek(file, 0L, SEEK_SET); if (fread(text.ptr, sizeof(unsigned char), text.length, file) != text.length) XtErrorMsg("readError", "insertFileNamed", "XawError", "fread returned error.", NULL, NULL); |