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.
main
Benny Baumann 6 years ago
parent 736c496dbf
commit dac1e05a2c
  1. 2
      freebsd/FreeBSDProcessList.c

@ -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…
Cancel
Save