summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-17 10:58:05 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-17 10:58:05 +0000
commit99e5d02f747dcc44800b2e47fa45aa1dff9c5bf7 (patch)
tree30eec9640d497bf72ed47518aee13d7306547783 /source3/smbd
parent63c1aa25cfbc96abf67bb4f5c99291d05bffb9bb (diff)
downloadsamba-99e5d02f747dcc44800b2e47fa45aa1dff9c5bf7.tar.gz
samba-99e5d02f747dcc44800b2e47fa45aa1dff9c5bf7.tar.bz2
samba-99e5d02f747dcc44800b2e47fa45aa1dff9c5bf7.zip
Brain fart - make sure we truncate the right string...
Andrew Bartlett (This used to be commit 32eb2cdca62a784d96207507e273bbbf77b0c6c3)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/statcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c
index b1cb0f6e0f..1e06b2b103 100644
--- a/source3/smbd/statcache.c
+++ b/source3/smbd/statcache.c
@@ -121,11 +121,11 @@ void stat_cache_add( const char *full_orig_name, const char *orig_translated_pat
return;
}
- /* we only want to store the first part of translated_path,
- up to the length of original_path */
+ /* we only want to store the first part of original_path,
+ up to the length of translated_path */
- translated_path[original_path_length] = '\0';
- translated_path_length = original_path_length;
+ original_path[translated_path_length] = '\0';
+ original_path_length = translated_path_length;
}
#if 0