2008-06-09 Ken Werner <ken.werner@de.ibm.com>

* libc/machine/spu/strcat.c: Return value fixed.
        * libc/machine/spu/strncat.c: Likewise.
This commit is contained in:
Jeff Johnston 2008-06-09 17:26:30 +00:00
parent f4b8818426
commit 3da06ba822
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-06-09 Ken Werner <ken.werner@de.ibm.com>
* libc/machine/spu/strcat.c: Return value fixed.
* libc/machine/spu/strncat.c: Likewise.
2008-05-28 Eric Blake <ebb9@byu.net>
Fix bug in previous patch.

View File

@ -41,5 +41,6 @@
*/
char *strcat(char * __restrict__ dest, const char * __restrict__ src)
{
return _strncpy(_straddr(dest), src, 0, 0, 0);
_strncpy(_straddr(dest), src, 0, 0, 0);
return dest;
}

View File

@ -41,5 +41,6 @@
char * strncat(char * __restrict__ dest, const char * __restrict__ src,
size_t n)
{
return _strncpy(_straddr(dest), src, n, 1, 1);
_strncpy(_straddr(dest), src, n, 1, 1);
return dest;
}