aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl/fix-fputs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/musl/fix-fputs.patch')
-rw-r--r--main/musl/fix-fputs.patch12
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;
+ }
+