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:
parent
134f54a602
commit
57b0c4dd52
|
@ -66,7 +66,7 @@ void *calloc(unsigned nmemb, unsigned size)
|
||||||
void *memcpy(void *dest, const void *src, unsigned n);
|
void *memcpy(void *dest, const void *src, unsigned n);
|
||||||
*/
|
*/
|
||||||
char *strcpy(char *dest, const char *src)
|
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)
|
char *strcat(char *dest, const char *src)
|
||||||
{ printf("%s: not implemented\n", __func__); return 0; }
|
{ printf("%s: not implemented\n", __func__); return 0; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user