From f69d54f05bc29a741a8f83fab628140e16f337ea Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 0021-pwdx: Fix a misleading comment. It sounds like an off-by-one, but the code itself is correct. --- pwdx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);