changeset 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 b9d4baa4f6fa
children 2586f7b734f4
files Discovery/Src/t7.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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