From 059710302fbac6693280e7a27b3797f49a524c97 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 24 May 2004 11:30:15 +0000 Subject: [PATCH] Arnaud Desitter points out a silly mistake in retrieve_cutbuffer() (don't test for `int *nbytes' being <= 0, test for the integer it points to being <= 0!). git-svn-id: svn://svn.tartarus.org/sgt/putty@4254 cda61777-01e9-0310-a592-d414129be87e --- unix/pterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/pterm.c b/unix/pterm.c index c52b9208..87339fb4 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -1371,7 +1371,7 @@ char * retrieve_cutbuffer(int * nbytes) { char * ptr; ptr = XFetchBytes(GDK_DISPLAY(), nbytes); - if (nbytes <= 0 && ptr != 0) { + if (*nbytes <= 0 && ptr != 0) { XFree(ptr); ptr = 0; } -- 2.11.0