Commit 6faafa64 authored by 's avatar
Browse files

Replaced a strncpy() call which could lead to a heap overflow error.

git-svn-id: file:///home/svn/mapi/trunk@562 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 1de98943
......@@ -663,7 +663,8 @@ failure: data->opcode = NIC_NOTFOUND;
strncpy(s, temp->data, strlen(temp->data));
//strncpy(s, temp->data, strlen(temp->data));
snprintf(s, MAX_DATA_SIZE, "%s", temp->data);
s += strlen(temp->data);
*s++ = ':';
if(s > data->vo)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment