summaryrefslogtreecommitdiff
path: root/src/MultiSrc.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-07 21:54:54 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-07 21:54:54 -0800
commit342d3a8f74bf272235c5eca2b62bd63d3e1e556d (patch)
treeb555ec2276482b5f166d562fd01d5d669ec5b0e9 /src/MultiSrc.c
parente616514e74e8120869bb4b04f12e6c0fcb45d27f (diff)
Use SEEK_* names instead of raw numbers for fseek whence argument
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/MultiSrc.c')
-rw-r--r--src/MultiSrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MultiSrc.c b/src/MultiSrc.c
index 3ea875b..7ad3cdd 100644
--- a/src/MultiSrc.c
+++ b/src/MultiSrc.c
@@ -1118,7 +1118,7 @@ InitStringOrFile(MultiSrcObject src, Boolean newString)
if (!src->multi_src.is_tempfile) {
if ((file = fopen(src->multi_src.string, open_mode)) != 0) {
- (void) fseek(file, 0, 2);
+ (void) fseek(file, 0, SEEK_END);
src->multi_src.length = ftell (file);
return file;
} else {
@@ -1182,7 +1182,7 @@ LoadPieces(MultiSrcObject src, FILE *file, char *string)
if (src->multi_src.length != 0) {
temp_mb_holder =
XtMalloc((unsigned)(src->multi_src.length + 1) * sizeof(unsigned char));
- fseek(file, 0, 0);
+ fseek(file, 0, SEEK_SET);
src->multi_src.length = fread (temp_mb_holder,
sizeof(unsigned char),
(size_t)src->multi_src.length, file);