comparison 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
comparison
equal deleted inserted replaced
629:55a9aa740f13 630:b9d4baa4f6fa
300 } 300 }
301 } 301 }
302 302
303 if((*text == 0) && (infolog.maxpages > 1)) 303 if((*text == 0) && (infolog.maxpages > 1))
304 { 304 {
305 snprintf(text,8, "\002" "%u/%u", infolog.page, infolog.maxpages); 305 snprintf(text,10, "\002" "%u/%u", infolog.page, infolog.maxpages);
306 gfx_write_topline_simple(&INFOLOGscreen, text, CLUT_InfoPageLogbook); 306 gfx_write_topline_simple(&INFOLOGscreen, text, CLUT_InfoPageLogbook);
307 *text = 0; 307 *text = 0;
308 } 308 }
309 309
310 if(*text == 0) 310 if(*text == 0)