Brain fart - make sure we truncate the right string...
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Mar 2003 10:58:05 +0000 (10:58 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 17 Mar 2003 10:58:05 +0000 (10:58 +0000)
Andrew Bartlett

source/smbd/statcache.c

index b1cb0f6e0fd8aaf84f3c4f9f18467734c968c109..1e06b2b103168791f9ad9b9b58f77f731d11650f 100644 (file)
@@ -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