Commit bb5542fa authored by Rob Swindell's avatar Rob Swindell 💬
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
Pipeline #3109 passed with stage
in 9 minutes and 56 seconds
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment