vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / string / strcat.c
blob332358315657288fb60b8772d3d8ea4bee34026c
1 /*
2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
6 #include <sys/types.h>
7 #include <string.h>
10 char *
11 strcat(char *dest, char const*src)
13 char *tmp = dest;
15 while(*dest)
16 dest++;
17 while((*dest++ = *src++) != '\0')
20 return tmp;