diff options
Diffstat (limited to 'procps/pwdx.c')
-rw-r--r-- | procps/pwdx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/pwdx.c b/procps/pwdx.c index 22b892275..4e34149ed 100644 --- a/procps/pwdx.c +++ b/procps/pwdx.c | |||
@@ -41,7 +41,7 @@ int pwdx_main(int argc UNUSED_PARAM, char **argv) | |||
41 | // Allowed on the command line: | 41 | // Allowed on the command line: |
42 | // /proc/NUM | 42 | // /proc/NUM |
43 | // NUM | 43 | // NUM |
44 | if (strncmp(arg, "/proc/", 6) == 0) | 44 | if (is_prefixed_with(arg, "/proc/")) |
45 | arg += 6; | 45 | arg += 6; |
46 | 46 | ||
47 | pid = bb_strtou(arg, NULL, 10); | 47 | pid = bb_strtou(arg, NULL, 10); |