fix popen not to leak pipes from one child to another
[musl] / src / stdio / fsetpos.c
index 5d76c8c..77ab8d8 100644 (file)
@@ -2,7 +2,7 @@
 
 int fsetpos(FILE *f, const fpos_t *pos)
 {
-       return __fseeko(f, *(const off_t *)pos, SEEK_SET);
+       return __fseeko(f, *(const long long *)pos, SEEK_SET);
 }
 
-LFS64(fsetpos);
+weak_alias(fsetpos, fsetpos64);