demo: Avoid debug message in demo/src/lib/mini_c

The "strncpy - not implemented" message appeared on the use of libpng.
Even though it did not cause trouble, spilling the log with such
easy-to-fix issues should better be avoided.
This commit is contained in:
Norman Feske 2013-01-16 19:41:22 +01:00
parent 134f54a602
commit 57b0c4dd52
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ void *calloc(unsigned nmemb, unsigned size)
void *memcpy(void *dest, const void *src, unsigned n);
*/
char *strcpy(char *dest, const char *src)
{ printf("%s: not implemented\n", __func__); return 0; }
{ return strncpy(dest, src, ~0); }
char *strcat(char *dest, const char *src)
{ printf("%s: not implemented\n", __func__); return 0; }