]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
In xlatlognam(), use the start of the destination buffer as the destination
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 1 Feb 2003 21:39:59 +0000 (21:39 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 1 Feb 2003 21:39:59 +0000 (21:39 +0000)
filename, not the end.

[originally from svn r2770]

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);
 }