Commits

Jilles Tjoelker  committed 580437f

Use memmove instead of memcpy where there is overlap (modunload).

  • Participants
  • Parent commits 651235b

Comments (0)

Files changed (1)

File src/modules.c

 	dlclose(modlist[modindex]->address);
 
 	rb_free(modlist[modindex]->name);
-	memcpy(&modlist[modindex], &modlist[modindex + 1],
+	memmove(&modlist[modindex], &modlist[modindex + 1],
 	       sizeof(struct module) * ((num_mods - 1) - modindex));
 
 	if(num_mods != 0)