--- rxvt-unicode/src/strings.C 2004/08/15 00:37:05 1.7 +++ rxvt-unicode/src/strings.C 2006/01/06 05:37:59 1.9 @@ -4,7 +4,7 @@ * * All portions of code are copyright by their respective author/s. * Copyright (c) 1997-2001 Geoff Wing - * Copyright (c) 2004 Marc Lehmann + * Copyright (c) 2004-2006 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -133,18 +133,18 @@ char * strdup (const char *s) { - size_t len = STRLEN (s) + 1; + size_t len = strlen (s) + 1; char *c; if ((c = malloc (len)) != NULL) - MEMCPY (c, s, len); + memcpy (c, s, len); return c; } char * index (const char *s, int c) { - return STRCHR (s, c); + return strchr (s, c); } char * @@ -169,7 +169,7 @@ char * rindex (const char *s, int c) { - return STRRCHR (s, c); + return strrchr (s, c); } char * @@ -191,7 +191,7 @@ memcpy (void *s1, const void *s2, size_t len) { /* has extra stack and time but less code space */ - return MEMMOVE (s1, s2, len); + return memmove (s1, s2, len); } /*--------------------------------------------------------------------------* @@ -256,7 +256,7 @@ void bzero (void *b, size_t len) { - MEMSET (b, 0, len); + memset (b, 0, len); } void *