summaryrefslogtreecommitdiff
path: root/libbb/dirname.c
diff options
context:
space:
mode:
authorMatt Kraai2001-07-05 19:00:47 +0000
committerMatt Kraai2001-07-05 19:00:47 +0000
commit5009f90ea24224638af6945552012ce60efb3cea (patch)
tree3a1c4ca9a5a873f39efe93d88528315c2f339090 /libbb/dirname.c
parent44edeff025d0c282fd71dade3d20e237e58ca4bc (diff)
downloadbusybox-5009f90ea24224638af6945552012ce60efb3cea.zip
busybox-5009f90ea24224638af6945552012ce60efb3cea.tar.gz
Removed obsolete function, strdup_substr.
Diffstat (limited to 'libbb/dirname.c')
-rw-r--r--libbb/dirname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/dirname.c b/libbb/dirname.c
index cc50f58..5f83994 100644
--- a/libbb/dirname.c
+++ b/libbb/dirname.c
@@ -45,5 +45,5 @@ char *dirname(const char *path)
if (s < path)
return xstrdup (".");
else
- return strdup_substr (path, 0, s - path + 1);
+ return xstrndup (path, s - path + 1);
}