summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index d39fc16a36..2c7b52bbef 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -4236,7 +4236,7 @@ BOOL is_in_path(char *name, name_compare_entry *namelist)
/* Get the last component of the unix name. */
p = strrchr(name, '/');
- strncpy(last_component, p ? p : name, sizeof(last_component)-1);
+ strncpy(last_component, p ? ++p : name, sizeof(last_component)-1);
last_component[sizeof(last_component)-1] = '\0';
for(; namelist->name != NULL; namelist++)