Skip to content
Snippets Groups Projects
Commit 73dbc5b1 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix buffer overrun

parent 726f2e53
No related branches found
No related tags found
No related merge requests found
......@@ -477,7 +477,7 @@ void LLViewerJoystick::initDevice(void * preffered_device /*LPDIRECTINPUTDEVICE8
size_t dest_size = sizeof(mNdofDev->product);
strncpy(mNdofDev->product, name.c_str(), dest_size-1);
mNdofDev->product[dest_size] = '\0';
mNdofDev->product[dest_size-1] = '\0';
mNdofDev->manufacturer[0] = '\0';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment