]> granicus.if.org Git - procps-ng/commitdiff
0021-pwdx: Fix a misleading comment.
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Jun 2018 11:59:14 +0000 (21:59 +1000)
It sounds like an off-by-one, but the code itself is correct.

pwdx.c

diff --git a/pwdx.c b/pwdx.c
index 3e0afca6b2d904dffc53fe8ef8763909a6c09285..03ca187211f4d1dd0b9067165ab0f96ac5d91976 100644 (file)
--- 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);