summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
69fd556)
SCCS-vsn: lib/libc/db/hash/hash.c 8.2
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)hash.c 8.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
if (p = malloc(newsize)) {
memmove(p, *p_ptr, oldsize);
if (p = malloc(newsize)) {
memmove(p, *p_ptr, oldsize);
- memset(p + oldsize, 0, newsize - oldsize);
+ memset((char *)p + oldsize, 0, newsize - oldsize);
free(*p_ptr);
*p_ptr = p;
}
free(*p_ptr);
*p_ptr = p;
}