From 99e5d02f747dcc44800b2e47fa45aa1dff9c5bf7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 17 Mar 2003 10:58:05 +0000 Subject: Brain fart - make sure we truncate the right string... Andrew Bartlett (This used to be commit 32eb2cdca62a784d96207507e273bbbf77b0c6c3) --- source3/smbd/statcache.c | 8 ++++---- 1 file 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 -- cgit