]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD regtest: ensure aio_read string is null terminated
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 24 Dec 2023 16:37:50 +0000 (17:37 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 24 Dec 2023 16:37:50 +0000 (17:37 +0100)
Was failing on FreeBSD 14 x86

memcheck/tests/freebsd/aio_read.c

index f524f3b22d9df41f454081c004cc6235122d853b..5cc684f5977c001957882c52ecd827dc7f10225a 100644 (file)
@@ -41,7 +41,7 @@ int main() {
      ERR_EXIT("aio_return");
   }
 
-  buf[63] = '\0';
+  buf[ret] = '\0';
   printf("content: %s\n", buf);
 
   return 0;