Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditCustom.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 | 3e1a0e267f38 |
children | f735f1123526 |
comparison
equal
deleted
inserted
replaced
629:55a9aa740f13 | 630:b9d4baa4f6fa |
---|---|
168 /* none */ | 168 /* none */ |
169 case LLC_Empty: | 169 case LLC_Empty: |
170 text[4] = '-'; | 170 text[4] = '-'; |
171 break; | 171 break; |
172 default: | 172 default: |
173 snprintf(&text[4],2,"%u",settingsGetPointer()->tX_userselectedLeftLowerCornerPrimary); | 173 text[4] = 'X'; |
174 break; | 174 break; |
175 } | 175 } |
176 text[5] = 0; | 176 text[5] = 0; |
177 write_label_var( 30, 700, ME_Y_LINE6, &FontT48, text); | 177 write_label_var( 30, 700, ME_Y_LINE6, &FontT48, text); |
178 | 178 |
292 break; | 292 break; |
293 case MOTION_DETECT_SCROLL: | 293 case MOTION_DETECT_SCROLL: |
294 text[textIndex++] = TXT2BYTE_MoCtrlScroll; | 294 text[textIndex++] = TXT2BYTE_MoCtrlScroll; |
295 break; | 295 break; |
296 default: | 296 default: |
297 snprintf(&text[4],2,"%u",settingsGetPointer()->MotionDetection); | 297 textIndex += snprintf(&text[4],4,"%u",settingsGetPointer()->MotionDetection); |
298 textIndex++; | |
299 break; | 298 break; |
300 } | 299 } |
301 text[textIndex] = 0; | 300 text[textIndex] = 0; |
302 write_label_var(500, 800, ME_Y_LINE6, &FontT48, text); | 301 write_label_var(500, 800, ME_Y_LINE6, &FontT48, text); |
303 | 302 |