From 32eb2cdca62a784d96207507e273bbbf77b0c6c3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 17 Mar 2003 10:58:05 +0000 Subject: [PATCH] Brain fart - make sure we truncate the right string... Andrew Bartlett --- source/smbd/statcache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/smbd/statcache.c b/source/smbd/statcache.c index b1cb0f6e0fd..1e06b2b1031 100644 --- a/source/smbd/statcache.c +++ b/source/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