Skip to content
Snippets Groups Projects
Commit bb5542fa authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Increase size of sprintf buffer to resolve GCC warning about buffer overflow

e.g. directive argument in the range [-255, 2147483645]
parent 121ce679
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3109 passed
......@@ -457,7 +457,7 @@ int ansi_puttext(int sx, int sy, int ex, int ey, void* buf)
ansi_sendstr("\n\n\n\n\n",ti.screenheight-ansiy-2);
}
else {
char str[6];
char str[16];
sprintf(str,"\033[%dB",ti.screenheight-ansiy-2);
ansi_sendstr(str,-1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment