Commit 93844f64 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Use memcpy instead of strcpy to improve performance.

parent 60588b24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ char *curlx_strdup(const char *str)
  if (!newstr)
    return (char *)NULL;

  strcpy(newstr,str);
  memcpy(newstr,str,(len+1)*sizeof(char));

  return newstr;