From: Paul Semel Date: Wed, 11 Oct 2017 13:07:29 +0000 (+0000) Subject: libc: Fix strcpy() assignment mistake X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9a439d131fcb546d5254522e817694a2d46ffde8;p=people%2Fandrewcoop%2Fxen-test-framework.git libc: Fix strcpy() assignment mistake the strcpy function was doing a comparison instead of doing an assignment. Signed-off-by: Paul Semel Reviewed-by: Pawel Wieczorkiewicz Reviewed-by: Bjoern Doebel Reviewed-by: Martin Pohlack Reviewed-and-tested-by: Andrew Cooper --- diff --git a/common/libc/string.c b/common/libc/string.c index 94acc7e..967f2fa 100644 --- a/common/libc/string.c +++ b/common/libc/string.c @@ -24,7 +24,7 @@ char *(strcpy)(char *dst, const char *src) { char *p = dst; - while ( *p++ == *src++ ) + while ( (*p++ = *src++) ) ; return dst;