mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[host] app: fix possible string overflow
This commit is contained in:
parent
e2e49bce13
commit
1808adc2de
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ int app_main(int argc, char * argv[])
|
|||
.magic = KVMFR_MAGIC,
|
||||
.version = KVMFR_VERSION,
|
||||
};
|
||||
strncpy(udata.hostver, BUILD_VERSION, sizeof(udata.hostver));
|
||||
strncpy(udata.hostver, BUILD_VERSION, sizeof(udata.hostver)-1);
|
||||
|
||||
LGMP_STATUS status;
|
||||
if ((status = lgmpHostInit(shmDev.mem, shmDev.size, &app.lgmp,
|
||||
|
|
Loading…
Reference in a new issue