tests: several -Wwrite-strings fixes.

This commit is contained in:
Ozkan Sezer committed 2021-11-20 01:02:02 +03:00
1 parent 665865eda2
commit 990fb668f7
17 files changed
+84 -84

No files matched your search

+3 -2
View File
@@ -137,9 +137,10 @@ PrintKey(SDL_Keysym * sym, SDL_bool pressed, SDL_bool repeat)
}
static void
PrintText(char *eventtype, char *text)
PrintText(const char *eventtype, const char *text)
{
char *spot, expanded[1024];
const char *spot;
char expanded[1024];
expanded[0] = '\0';
for ( spot = text; *spot; ++spot )