Explorar el Código

Use memcpy instead of bcopy as it is possibly more portable

Stanislav Galabov hace 11 años
padre
commit
a64420c178
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;