mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Resolved a todo in main.c
This commit is contained in:
@@ -3544,7 +3544,11 @@ int main(int argc, char *argv[])
|
||||
if (sdl_mod&(KMOD_CAPS))
|
||||
strappend(uitext, " [CAP LOCKS]");
|
||||
if (GRID_MODE)
|
||||
sprintf(uitext, "%s [GRID: %d]", uitext, GRID_MODE); //TODO: Undefined behavior: variable is used as parameter and destination in sprintf().
|
||||
{
|
||||
char gridtext[15];
|
||||
sprintf(gridtext, " [GRID: %d]", GRID_MODE);
|
||||
strappend(uitext, gridtext);
|
||||
}
|
||||
#ifdef INTERNAL
|
||||
if (vs)
|
||||
strappend(uitext, " [FRAME CAPTURE]");
|
||||
|
Reference in New Issue
Block a user