summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
48f8c3d)
Change-Id: I833d753bd5c426d50c0c9fdee5668f3b9fff13b9
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
- prox_strncpy(tmp, h, len3);
+ // Use strncpy here and not prox_strncpy. The dest (tmp) has been initialized with 0.
+ // The fact that we are copying 80 characters potentially not null terminated is hence not an issue.
+ // Using prox_strncpy here might cause a PROX_PANIC
+ strncpy(tmp, h, len3);
h += len3;
while (h[0] == ' ' && strlen(h))
h++;
h += len3;
while (h[0] == ' ' && strlen(h))
h++;