X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Ftower-test.c;h=78198cb554fb9974b69a2780723151959cee58bc;hb=012d9927ee99874f8eeda863f1ec150f4317832d;hp=f5c002652a4409af5f9ef834b2d3ca0dd2f3fe82;hpb=a4eeb4569b33a2dafc276f236db8d6a7a58b7b61;p=pspp diff --git a/tests/libpspp/tower-test.c b/tests/libpspp/tower-test.c index f5c002652a..78198cb554 100644 --- a/tests/libpspp/tower-test.c +++ b/tests/libpspp/tower-test.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007, 2010 Free Software Foundation, Inc. + Copyright (C) 2007, 2010, 2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -442,8 +442,8 @@ test_delete (void) assert (j < block_cnt - i); if (expected[j].x == idx) { - memcpy (&expected[j], &expected[j + 1], - sizeof *expected * (block_cnt - i - j - 1)); + memmove (&expected[j], &expected[j + 1], + sizeof *expected * (block_cnt - i - j - 1)); break; } }