Oops. Defining max() the wrong way round was breaking rect select.
[u/mdw/putty] / misc.h
diff --git a/misc.h b/misc.h
index e4e70b1..4805474 100644 (file)
--- a/misc.h
+++ b/misc.h
@@ -62,7 +62,7 @@ void debug_memdump(void *buf, int len, int L);
 #define min(x,y) ( (x) < (y) ? (x) : (y) )
 #endif
 #ifndef max
-#define max(x,y) ( (x) < (y) ? (x) : (y) )
+#define max(x,y) ( (x) > (y) ? (x) : (y) )
 #endif
 
 #endif