diff options
author | Oliver Kiddle <opk@zsh.org> | 2021-04-11 22:26:36 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-04-11 22:26:36 +0200 |
commit | 704d10989e0db83bd6460e847a9f89017e290474 (patch) | |
tree | 06053a32217b9f55772b630baa7a554f89be7ad3 /Src/input.c | |
parent | 638815623368683e685a8d706e57634f6fec6401 (diff) | |
download | zsh-704d10989e0db83bd6460e847a9f89017e290474.tar.gz zsh-704d10989e0db83bd6460e847a9f89017e290474.tar.xz zsh-704d10989e0db83bd6460e847a9f89017e290474.zip |
48504: use SEEK_ macros in fseek() calls
Diffstat (limited to 'Src/input.c')
-rw-r--r-- | Src/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/input.c b/Src/input.c index e9989ffe4..f568cc135 100644 --- a/Src/input.c +++ b/Src/input.c @@ -495,9 +495,9 @@ stuff(char *fn) zerr("can't open %s", fn); return 1; } - fseek(in, 0, 2); + fseek(in, 0, SEEK_END); len = ftell(in); - fseek(in, 0, 0); + fseek(in, 0, SEEK_SET); buf = (char *)zalloc(len + 1); if (!(fread(buf, len, 1, in))) { zerr("read error on %s", fn); |