minor: strncpy -> strcpy and formatting
This commit is contained in:
parent
f8ac8cc14b
commit
f9cc26582a
3 changed files with 8 additions and 4 deletions
|
|
@ -107,7 +107,7 @@ clicon_strsep(char *string,
|
|||
}
|
||||
memset(vec, 0, siz);
|
||||
ptr = (char*)vec + (nvec+1)* sizeof(char*); /* this is where ptr starts */
|
||||
strncpy(ptr, string, strlen(string)+1);
|
||||
strcpy(ptr, string);
|
||||
i = 0;
|
||||
while ((p = strsep(&ptr, delim)) != NULL)
|
||||
vec[i++] = p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue