Commit fdddd45
committed
Reject a NUL in complexstr()
A NUL cell ends a batch write and a cell array read (add_wchnstr(3X)), so
addstr() would write only the cells before it and in_wchstr() would read
only those, on both a wide and a narrow build. addstr() already rejects an
embedded NUL in a str.1 parent a4d2907 commit fdddd45
2 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
1327 | 1337 | | |
1328 | 1338 | | |
1329 | 1339 | | |
| |||
1340 | 1350 | | |
1341 | 1351 | | |
1342 | 1352 | | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
| 1353 | + | |
1346 | 1354 | | |
1347 | 1355 | | |
1348 | 1356 | | |
| |||
1351 | 1359 | | |
1352 | 1360 | | |
1353 | 1361 | | |
1354 | | - | |
| 1362 | + | |
1355 | 1363 | | |
1356 | 1364 | | |
1357 | 1365 | | |
| |||
0 commit comments