Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 631:49a662df8210
Warnings:
Solved warnings related to possible problems with string length in combination with sprintf usage
author | Ideenmodellierer |
---|---|
date | Tue, 23 Feb 2021 21:55:26 +0100 |
parents | fd0b60dee6f3 |
children | c737cf5d9067 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Tue Feb 23 21:54:56 2021 +0100 +++ b/Discovery/Src/t7.c Tue Feb 23 21:55:26 2021 +0100 @@ -1872,7 +1872,7 @@ // Wechseltiefe if(pGasLine[gasId].depth_meter) { - textpointer += snprintf(&text[textpointer],7,"\t%u %c%c",unit_depth_integer(pGasLine[gasId].depth_meter), unit_depth_char1(), unit_depth_char2()); + textpointer += snprintf(&text[textpointer],10,"\t%u %c%c",unit_depth_integer(pGasLine[gasId].depth_meter), unit_depth_char1(), unit_depth_char2()); } GFX_write_string(&FontT42, &t7cY0free, text, gasId); #ifdef ENABLE_UNUSED_GAS_HIDING