summarylogtreecommitdiffstats
path: root/fseeko64.patch
diff options
context:
space:
mode:
authorfelix2016-03-28 23:16:20 +0200
committerfelix2016-04-05 08:47:15 +0200
commit8e4c7b0a0148aea3e4044f031ca217e4dc497175 (patch)
tree20a9dce96763dd263df9b09ce0f4b372eabdfdac /fseeko64.patch
parent2e2f91892d853932d37ba9dc7b1a58cbe8aadd77 (diff)
downloadaur-8e4c7b0a0148aea3e4044f031ca217e4dc497175.tar.gz
Fix more libc.a bugs
Diffstat (limited to 'fseeko64.patch')
-rw-r--r--fseeko64.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/fseeko64.patch b/fseeko64.patch
new file mode 100644
index 000000000000..3483574d6ed4
--- /dev/null
+++ b/fseeko64.patch
@@ -0,0 +1,10 @@
+--- src/libc/compat/stdio/fseeko64.c
++++ src/libc/compat/stdio/fseeko64.c
+@@ -19,6 +19,8 @@ fseeko64(FILE *_stream, off64_t _offset,
+ o = llseek(fileno(_stream), _offset, _mode);
+ if (o == -1)
+ return -1;
++ if (_stream)
++ _stream->_cnt = 0;
+ return 0;
+ }