From: Roy Marples Date: Tue, 3 May 2016 12:12:15 +0000 (+0000) Subject: Fix math. X-Git-Tag: v6.11.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c1cc202c3902eb106b722a7f75a57253f428b3;p=thirdparty%2Fdhcpcd.git Fix math. --- diff --git a/script.c b/script.c index da781c7c..e20eca9c 100644 --- a/script.c +++ b/script.c @@ -691,7 +691,7 @@ script_runreason(const struct interface *ifp, const char *reason) /* Resize for PATH and RC_SVCNAME */ svcname = getenv(RC_SVCNAME); - ep = reallocarray(env, elen + 2 + svcname ? 1 : 0, sizeof(char *)); + ep = reallocarray(env, elen + 2 + (svcname ? 1 : 0), sizeof(char *)); if (ep == NULL) { elen = 0; goto out;