Since r7266, it's been possible to get a hostname into Default Settings; but
[u/mdw/putty] / windows / wingss.c
index 222b34f..742106e 100644 (file)
@@ -1,8 +1,10 @@
 #ifndef NO_GSSAPI
 
-#include <windows.h>
+#include "putty.h"
+
 #define SECURITY_WIN32
 #include <security.h>
+
 #include "sshgss.h"
 #include "misc.h"
 
@@ -251,7 +253,7 @@ Ssh_gss_stat ssh_gss_display_status(Ssh_gss_ctx ctx, Ssh_gss_buf *buf)
     }
 
     buf->value = dupstr(msg);
-    buf->length = strlen(buf->length);
+    buf->length = strlen(buf->value);
     
     return SSH_GSS_OK;
 }