summaryrefslogtreecommitdiff
path: root/procps/pwdx.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/pwdx.c')
-rw-r--r--procps/pwdx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/pwdx.c b/procps/pwdx.c
index 22b8922..4e34149 100644
--- a/procps/pwdx.c
+++ b/procps/pwdx.c
@@ -41,7 +41,7 @@ int pwdx_main(int argc UNUSED_PARAM, char **argv)
// Allowed on the command line:
// /proc/NUM
// NUM
- if (strncmp(arg, "/proc/", 6) == 0)
+ if (is_prefixed_with(arg, "/proc/"))
arg += 6;
pid = bb_strtou(arg, NULL, 10);