From be5133f376750f86d00cc5862bca7921cd5b8f34 Mon Sep 17 00:00:00 2001 From: Simon Tatham 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!). [originally from svn r4254] --- 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; }