1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-21 23:08:53 -05:00

Zero-terminate version string

This commit is contained in:
Raphael Assenat 2015-10-24 15:34:50 -04:00
parent 3672424b0b
commit deabb7b93d

View File

@ -102,9 +102,9 @@ static void hiddata_processCommandBuffer(void)
break;
case RQ_GCN64_GET_VERSION:
// CMD: RQ
// Answer: RQ, version string
// Answer: RQ, version string (zero-terminated)
strcpy((char*)(cmdbuf + 1), g_version);
cmdbuf_len = 1 + strlen(g_version);
cmdbuf_len = 1 + strlen(g_version) + 1;
break;
}