Mercurial > hg > xemacs-beta
diff src/strcat.c @ 203:850242ba4a81 r20-3b28
Import from CVS: tag r20-3b28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:02:21 +0200 |
parents | ac2d302a0011 |
children | 74fd4e045ea6 |
line wrap: on
line diff
--- a/src/strcat.c Mon Aug 13 10:01:24 2007 +0200 +++ b/src/strcat.c Mon Aug 13 10:02:21 2007 +0200 @@ -18,6 +18,11 @@ /* Synched up with: Not in FSF. */ +# include <config.h> +# ifndef REGISTER /* Strictly enforced in 20.3 */ +# define REGISTER +# endif + /* In HPUX 10 the strcat function references memory past the last byte of the string! This will core dump if the memory following the last byte is not mapped. @@ -28,11 +33,12 @@ 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 char *s1 = dest; + REGISTER CONST char *s2 = src; char c; /* Find the end of the string. */