Parcourir la source

Use memcpy instead of bcopy as it is possibly more portable

Stanislav Galabov il y a 11 ans
Parent
commit
a64420c178
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      plugins/lua/plugin_init.c

+ 1 - 1
plugins/lua/plugin_init.c

@@ -17,7 +17,7 @@ static char * trim(char *str)
 
 	len = last - first + 1;
 	new = malloc(len + 1);
-	bcopy(first, new, len);
+	memcpy(new, first, len);
 	new[len] = '\0';
 
 	return new;