diff options
| author | atlaua <luchsmail-gh@yahoo.com> | 2011-11-03 13:24:20 (GMT) |
|---|---|---|
| committer | atlaua <luchsmail-gh@yahoo.com> | 2011-11-03 13:24:20 (GMT) |
| commit | e084d91b55b9690cd89a60823c0be66929fc6d78 (patch) | |
| tree | 6224ecf00e78cbcf5a2b75e751762af20cd2482e /src | |
| parent | 85c638bf7168aeb222724761a55324fa70d1718d (diff) | |
| download | powder-e084d91b55b9690cd89a60823c0be66929fc6d78.zip powder-e084d91b55b9690cd89a60823c0be66929fc6d78.tar.gz | |
Resolved a todo in main.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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]"); |
