Browse Source

Use memcpy instead of bcopy as it is possibly more portable

Stanislav Galabov 11 years ago
parent
commit
a64420c178
1 changed files with 1 additions and 1 deletions
  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;