projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yikes - saving of Default Settings must have been broken for some
[u/mdw/putty]
/
unix
/
uxmisc.c
diff --git
a/unix/uxmisc.c
b/unix/uxmisc.c
index
8239158
..
6889bca
100644
(file)
--- a/
unix/uxmisc.c
+++ b/
unix/uxmisc.c
@@
-3,6
+3,7
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
+#include <unistd.h>
#include <sys/time.h>
#include "putty.h"
#include <sys/time.h>
#include "putty.h"
@@
-40,3
+41,19
@@
int filename_is_null(Filename fn)
{
return !*fn.path;
}
{
return !*fn.path;
}
+
+#ifdef DEBUG
+static FILE *debug_fp = NULL;
+
+void dputs(char *buf)
+{
+ if (!debug_fp) {
+ debug_fp = fopen("debug.log", "w");
+ }
+
+ write(1, buf, strlen(buf));
+
+ fputs(buf, debug_fp);
+ fflush(debug_fp);
+}
+#endif