Mercurial > public > ostc4
diff Discovery/Src/tInfoLog.c @ 630:b9d4baa4f6fa
Warnings:
Solved warnings related to possible problems with string length in combination with sprintf usage
author | Ideenmodellierer |
---|---|
date | Tue, 23 Feb 2021 21:54:56 +0100 |
parents | 280c11153080 |
children | cb386cccc7c5 |
line wrap: on
line diff
--- a/Discovery/Src/tInfoLog.c Tue Feb 23 21:53:24 2021 +0100 +++ b/Discovery/Src/tInfoLog.c Tue Feb 23 21:54:56 2021 +0100 @@ -302,7 +302,7 @@ if((*text == 0) && (infolog.maxpages > 1)) { - snprintf(text,8, "\002" "%u/%u", infolog.page, infolog.maxpages); + snprintf(text,10, "\002" "%u/%u", infolog.page, infolog.maxpages); gfx_write_topline_simple(&INFOLOGscreen, text, CLUT_InfoPageLogbook); *text = 0; }