diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-02-16 09:57:05 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-02-16 09:57:24 +0200 |
commit | e904ef5e1b8a63c19b09d751f031c81c7d92e9e4 (patch) | |
tree | dbd45f0f50db98c0c2fd12b264d90029a5ea4afb /main/musl/fix-fputs.patch | |
parent | 4b6acde7cfad625dfb0a6cdb998c23a0a4e01f98 (diff) | |
download | aports-e904ef5e1b8a63c19b09d751f031c81c7d92e9e4.tar.bz2 aports-e904ef5e1b8a63c19b09d751f031c81c7d92e9e4.tar.xz |
main/musl: fix fputs regression
Diffstat (limited to 'main/musl/fix-fputs.patch')
-rw-r--r-- | main/musl/fix-fputs.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main/musl/fix-fputs.patch b/main/musl/fix-fputs.patch new file mode 100644 index 0000000000..da9e4a0929 --- /dev/null +++ b/main/musl/fix-fputs.patch @@ -0,0 +1,12 @@ +diff --git a/src/stdio/fputs.c b/src/stdio/fputs.c +index 4737f44..c419923 100644 +--- a/src/stdio/fputs.c ++++ b/src/stdio/fputs.c +@@ -3,6 +3,7 @@ + + int fputs(const char *restrict s, FILE *restrict f) + { ++ if (!*s) return 0; + return (int)fwrite(s, strlen(s), 1, f) - 1; + } + |