fix swprintf handling of nul character in output
[musl] / src / string / strcpy.c
index f7e3ba3..6668a12 100644 (file)
@@ -1,16 +1,7 @@
 #include <string.h>
 
-char *__stpcpy(char *, const char *);
-
 char *strcpy(char *restrict dest, const char *restrict src)
 {
-#if 1
        __stpcpy(dest, src);
        return dest;
-#else
-       const unsigned char *s = src;
-       unsigned char *d = dest;
-       while ((*d++ = *s++));
-       return dest;
-#endif
 }