aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/strcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/strcpy.c')
-rw-r--r--newlib/libc/string/strcpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/strcpy.c b/newlib/libc/string/strcpy.c
index 905b254..3dc3c33 100644
--- a/newlib/libc/string/strcpy.c
+++ b/newlib/libc/string/strcpy.c
@@ -92,7 +92,7 @@ _DEFUN (strcpy, (dst0, src0),
src = (char*)aligned_src;
}
- while (*dst++ = *src++)
+ while ((*dst++ = *src++))
;
return dst0;
#endif /* not PREFER_SIZE_OVER_SPEED */