summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/sort.c b/src/common/sort.c
index df1df82..ee6cf2e 100644
--- a/src/common/sort.c
+++ b/src/common/sort.c
@@ -123,7 +123,7 @@ void *qinsert(void *base, size_t *nmemb, size_t size, __compar_fn_t compar, void
void *result; /* Tableau trié à retourner */
size_t index; /* Indice du point d'insertion */
- bsearch_index(&new, base, *nmemb, size, compar, &index);
+ bsearch_index(new, base, *nmemb, size, compar, &index);
result = realloc(base, (*nmemb + 1) * size);
@@ -132,7 +132,7 @@ void *qinsert(void *base, size_t *nmemb, size_t size, __compar_fn_t compar, void
(*nmemb)++;
- memcpy((char *)result + index * size, &new, size);
+ memcpy((char *)result + index * size, new, size);
return result;