Merge pull request #134 from lano1106/master

Replace strcpy with memcpy
This commit is contained in:
Petri Lehtinen
2013-08-27 22:37:44 -07:00

View File

@@ -45,7 +45,7 @@ char *jsonp_strdup(const char *str)
if(!new_str)
return NULL;
strcpy(new_str, str);
memcpy(new_str, str, len + 1);
return new_str;
}