From 57b0c4dd52ba7711bb661e0bc077d14e80935fbd Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 16 Jan 2013 19:41:22 +0100 Subject: [PATCH] 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. --- demo/src/lib/mini_c/mini_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/src/lib/mini_c/mini_c.c b/demo/src/lib/mini_c/mini_c.c index b2058002ba..24415ff0b6 100644 --- a/demo/src/lib/mini_c/mini_c.c +++ b/demo/src/lib/mini_c/mini_c.c @@ -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; }