diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-08-20 21:34:28 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-08-25 11:59:59 +0200 |
commit | 7457bfe9f319d939f9840a79703991d4b7beaaab (patch) | |
tree | 798308549b9a8877c12167c74a24c621dfe8461b /Process.c | |
parent | 21fb56e1e297c5ea85d685eb3809f1052d6f9a7a (diff) |
Avoid string overflow warning
Use xStrdup instead of xMallow and strncpy
StringUtils.c: In function ‘String_split’:
StringUtils.c:86:7: error: ‘strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
86 | strncpy(token, s, size + 1);
| ^
StringUtils.c:84:18: note: length computed here
84 | int size = strlen(s);
| ^
Diffstat (limited to 'Process.c')
0 files changed, 0 insertions, 0 deletions