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:
parent
3672424b0b
commit
deabb7b93d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user