summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoratlaua <luchsmail-gh@yahoo.com>2011-11-03 13:24:20 (GMT)
committer atlaua <luchsmail-gh@yahoo.com>2011-11-03 13:24:20 (GMT)
commite084d91b55b9690cd89a60823c0be66929fc6d78 (patch)
tree6224ecf00e78cbcf5a2b75e751762af20cd2482e /src
parent85c638bf7168aeb222724761a55324fa70d1718d (diff)
downloadpowder-e084d91b55b9690cd89a60823c0be66929fc6d78.zip
powder-e084d91b55b9690cd89a60823c0be66929fc6d78.tar.gz
Resolved a todo in main.c
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 57760d7..798f4f8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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]");