X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstring%2Fmemcpy.c;h=b2606b7222af7e87476d5a3e7718fa4631f99f10;hp=ca460ef9b52de4f7fc399597b726a607caa5b98b;hb=2f57d79a5a24856fdea69b2119d67e5fb5029b3e;hpb=1a0d9f7faca36f149db3b85c09a72528e0c73a83 diff --git a/functions/string/memcpy.c b/functions/string/memcpy.c index ca460ef..b2606b7 100644 --- a/functions/string/memcpy.c +++ b/functions/string/memcpy.c @@ -27,7 +27,7 @@ void * memcpy( void * _PDCLIB_restrict s1, const void * _PDCLIB_restrict s2, siz int main() { - char s[11] = "xxxxxxxxxxx"; + char s[] = "xxxxxxxxxxx"; BEGIN_TESTS; TESTCASE( memcpy( s, abcde, 6 ) == s ); TESTCASE( s[4] == 'e' );