Commit 4001e6b3513e2895eabdc823ddd115222aaee64d

Ryan C. Gordon 2019-09-26T13:44:49

stdlib: Patched to compile.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c
index 65cf85e..35eb327 100644
--- a/src/stdlib/SDL_string.c
+++ b/src/stdlib/SDL_string.c
@@ -1602,7 +1602,7 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg)
 
         if (end != textstart) {
             const size_t filllen = SDL_min(len, ((size_t) (end - textstart)) - 1);
-            SDL_memset(textstart, fill, fillen);
+            SDL_memset(textstart, fill, filllen);
         }
     }