]>
Commit | Line | Data |
---|---|---|
37ae0b5e | 1 | |
2 | arraylit.c: (in function main) | |
3 | arraylit.c:7:34: String literal with 6 characters is assigned to char [5] (no | |
4 | room for null terminator): "12345" | |
5 | arraylit.c:13:3: Suspect modification of observer unmodstr[0]: | |
6 | unmodstr[0] = 'U' | |
16c024b5 | 7 | arraylit.c:5:24: Storage unmodstr[0] becomes observer |
37ae0b5e | 8 | |
9 | Finished checking --- 2 code warnings, as expected | |
10 | ||
11 | arraylit.c: (in function main) | |
12 | arraylit.c:6:38: String literal with 18 characters is assigned to char [20] | |
13 | (possible waste of storage): "modifiable string" | |
14 | arraylit.c:7:34: String literal with 6 characters is assigned to char [5] (no | |
15 | room for null terminator): "12345" | |
16 | arraylit.c:9:34: String literal with 6 characters is assigned to char [7] | |
17 | (possible waste of storage): "12345" | |
18 | arraylit.c:13:3: Suspect modification of observer unmodstr[0]: | |
19 | unmodstr[0] = 'U' | |
16c024b5 | 20 | arraylit.c:5:24: Storage unmodstr[0] becomes observer |
37ae0b5e | 21 | |
22 | Finished checking --- 4 code warnings, as expected |