bin/xbps-checkvers/main.c: fix CID 62667 correctly.

This commit is contained in:
Juan RP 2014-10-05 09:44:39 +02:00
parent 54b72d8f81
commit 15743d20ea

View File

@ -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);
} }