Mercurial > hg > xemacs-beta
diff src/strcpy.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
line wrap: on
line diff
--- a/src/strcpy.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/strcpy.c Mon Aug 13 11:20:41 2007 +0200 @@ -35,6 +35,7 @@ #define HIGH_BIT_P(c) ((c) & hi_bit) #define HAS_ZERO(c) (((((c) + magic) ^ (c)) & not_magic) != not_magic) +/* CONST IS LOSING, but const is part of the interface of strcpy */ char * strcpy (char *to, const char *from) { @@ -55,7 +56,7 @@ if (HAS_ZERO(c)) { to = (char *) to1; - from = (const char *) from1; + from = (CONST char *) from1; goto slow_loop; } else