bin/xbps-checkvers/main.c: fix CID 62667 correctly.
This commit is contained in:
parent
54b72d8f81
commit
15743d20ea
@ -211,7 +211,7 @@ rcv_init(rcv_t *rcv, const char *prog)
|
|||||||
strncpy(rcv->xhp.conffile, rcv->xbps_conf, sizeof(rcv->xhp.conffile));
|
strncpy(rcv->xhp.conffile, rcv->xbps_conf, sizeof(rcv->xhp.conffile));
|
||||||
if (rcv->rootdir != NULL) {
|
if (rcv->rootdir != NULL) {
|
||||||
strncpy(rcv->xhp.rootdir, rcv->rootdir, XBPS_MAXPATH-1);
|
strncpy(rcv->xhp.rootdir, rcv->rootdir, XBPS_MAXPATH-1);
|
||||||
rcv->rootdir[XBPS_MAXPATH-1] = '\0';
|
rcv->xhp.rootdir[XBPS_MAXPATH-1] = '\0';
|
||||||
}
|
}
|
||||||
xbps_init(&rcv->xhp);
|
xbps_init(&rcv->xhp);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user