]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/tests/bsd_tests.c
xnu-6153.61.1.tar.gz
[apple/xnu.git] / bsd / tests / bsd_tests.c
index 3a3622fc781d3d2a3ec20470a4869891537fc858..6b1d11c5c4c2a8cc408c1eb64627687718e833d8 100644 (file)
@@ -263,7 +263,7 @@ xnupost_export_testdata(void * outp, uint32_t size, uint32_t * lenp)
        kret = copyout(&version[0], user_addr, length_to_copy);
        RET_IF_OP_FAIL;
 
-       length_to_copy = MIN((uint32_t)(strlen(PE_boot_args()) + 1), OSVERSIZE);
+       length_to_copy = MIN((uint32_t)(strlen(PE_boot_args()) + 1), BOOT_LINE_LENGTH);
        kret           = kcdata_get_memory_addr(&kcd, STACKSHOT_KCTYPE_BOOTARGS, length_to_copy, &user_addr);
        RET_IF_OP_FAIL;
        kret = copyout(PE_boot_args(), user_addr, length_to_copy);