git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update for HEAD-2003021201
[reactos.git]
/
lib
/
msvcrt
/
search
/
lsearch.c
diff --git
a/lib/msvcrt/search/lsearch.c
b/lib/msvcrt/search/lsearch.c
index
a1ada3f
..
8434ebb
100644
(file)
--- a/
lib/msvcrt/search/lsearch.c
+++ b/
lib/msvcrt/search/lsearch.c
@@
-10,7
+10,11
@@
void *_lsearch(const void *key, void *base, size_t *nelp, size_t width,
if (ret_find != NULL)
return ret_find;
+#ifdef __GNUC__
memcpy(base + (*nelp*width), key, width);
+#else
+ memcpy((int*)base + (*nelp*width), key, width);
+#endif
(*nelp)++;
return base;
}