mirror of https://github.com/xzeldon/htop.git
Fix FreeBSD compile issue
This issue was previously hidden as xSnprintf expanded to only one large command that didn't trigger the GCC formatting check.
This commit is contained in:
parent
736c496dbf
commit
dac1e05a2c
|
@ -355,7 +355,7 @@ char* FreeBSDProcessList_readJailName(struct kinfo_proc* kproc) {
|
||||||
if (jid < 0) {
|
if (jid < 0) {
|
||||||
if (!jail_errmsg[0])
|
if (!jail_errmsg[0])
|
||||||
xSnprintf(jail_errmsg, JAIL_ERRMSGLEN, "jail_get: %s", strerror(errno));
|
xSnprintf(jail_errmsg, JAIL_ERRMSGLEN, "jail_get: %s", strerror(errno));
|
||||||
return NULL;
|
return NULL;
|
||||||
} else if (jid == kproc->ki_jid) {
|
} else if (jid == kproc->ki_jid) {
|
||||||
jname = xStrdup(jnamebuf);
|
jname = xStrdup(jnamebuf);
|
||||||
if (jname == NULL)
|
if (jname == NULL)
|
||||||
|
|
Loading…
Reference in New Issue