]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - logging.c
In xlatlognam(), use the start of the destination buffer as the destination
[PuTTY.git] / logging.c
index 6c4e1889d508140597c9bcfacfd5a03461cba3b5..499747c743dbd9765b8a7bf927a3bdd9fe8ab653 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -258,5 +258,5 @@ static void xlatlognam(Filename *dest, Filename src,
     }
     *d = '\0';
 
-    *dest = filename_from_str(d);
+    *dest = filename_from_str(buffer);
 }