Mercurial > public > ostc4
comparison Discovery/Src/tMenuCustom.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 | fb5bb04ad914 |
children | 4a6bffaa38b3 |
comparison
equal
deleted
inserted
replaced
629:55a9aa740f13 | 630:b9d4baa4f6fa |
---|---|
82 case EXTRADISPLAY_none: | 82 case EXTRADISPLAY_none: |
83 text[textPointer++] = TXT2BYTE_ExtraNone; | 83 text[textPointer++] = TXT2BYTE_ExtraNone; |
84 break; | 84 break; |
85 | 85 |
86 default: | 86 default: |
87 snprintf(&text[textPointer++],2,"%u",settingsGetPointer()->extraDisplay); | 87 snprintf(&text[textPointer++],4,"%u",settingsGetPointer()->extraDisplay); |
88 break; | 88 break; |
89 } | 89 } |
90 } | 90 } |
91 strcpy(&text[textPointer],"\n\r"); | 91 strcpy(&text[textPointer],"\n\r"); |
92 textPointer += 2; | 92 textPointer += 2; |