We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acfbbd9 commit 7637356Copy full SHA for 7637356
lib/list.c
@@ -19,6 +19,7 @@
19
#include "defines.h"
20
#include "string/strchr/strchrcnt.h"
21
#include "string/strcmp/streq.h"
22
+#include "string/strcpy/memmove.h"
23
#include "string/strdup/strdup.h"
24
#include "string/strtok/strsep2ls.h"
25
@@ -67,7 +68,7 @@ del_list(/*@returned@*/ /*@only@*/char **list, const char *member)
67
68
continue;
69
for (m = 0; list[m] != NULL && !streq(list[m], member); m++)
70
- memmove(&list[m], &list[m+1], (n-m) * sizeof(char *));
71
+ memmove_T(&list[m], &list[m+1], n-m, char *);
72
} while (m != n);
73
74
return xrealloc_T(list, n+1, char *);
0 commit comments