Commit cc83fc3
committed
Coverity: String not null terminated
1. Swap out strdup() for a malloc() and memcpy(). Then nul terminate the
string before tokenizing.
Fixes CID: 5728341 parent 8c0c7fd commit cc83fc3
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1658 | 1658 | | |
1659 | 1659 | | |
1660 | 1660 | | |
| 1661 | + | |
| 1662 | + | |
1661 | 1663 | | |
1662 | | - | |
| 1664 | + | |
1663 | 1665 | | |
| 1666 | + | |
| 1667 | + | |
1664 | 1668 | | |
1665 | 1669 | | |
1666 | 1670 | | |
| |||
0 commit comments