Mercurial > hg > xemacs-beta
diff src/strcat.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/strcat.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/strcat.c Mon Aug 13 11:20:41 2007 +0200 @@ -27,17 +27,18 @@ the string! This will core dump if the memory following the last byte is not mapped. - Here is a correct version from, glibc 1.09. + Here is a correct version from glibc 1.09. */ char *strcat (char *dest, const char *src); /* Append SRC on the end of DEST. */ +/* CONST IS LOSING, but const is part of the interface of strcat */ char * strcat (char *dest, const char *src) { REGISTER char *s1 = dest; - REGISTER const char *s2 = src; + REGISTER CONST char *s2 = src; char c; /* Find the end of the string. */