From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 (+0000) Subject: pwdx: Fix a misleading comment. X-Git-Tag: v3.3.15~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=daec51a06c4ac67042b5a494386159504ae785cf;p=procps-ng pwdx: Fix a misleading comment. It sounds like an off-by-one, but the code itself is correct. --- diff --git a/pwdx.c b/pwdx.c index 3e0afca6..03ca1872 100644 --- a/pwdx.c +++ b/pwdx.c @@ -104,7 +104,7 @@ int main(int argc, char *argv[]) for (i = 0; i < argc; i++) { char *s; ssize_t len, buflen; - /* Constant 10 is the length of strings "/proc/" + "/cwd" + 1 */ + /* Constant 10 is the length of strings "/proc/" + "/cwd" */ char *buf; buflen = 10 + strlen(argv[i]) + 1; buf = xmalloc(buflen);