From d0ce0e95f09cf552c6297d89adbceda41239f9d0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 29 Apr 2004 01:27:15 +0000 Subject: [PATCH] Fix debug bug --- libraries/liblber/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 2f53f470f7..18b5bac876 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -341,7 +341,7 @@ ber_memrealloc_x( void* p, ber_len_t s, void *ctx ) mh = p; mh->bm_length = s; setend( (char *)&mh[1] + mh->bm_length ); - if( (s - oldlen) > 0 ) { + if( s > oldlen ) { /* poison any new memory */ memset( (char *)&mh[1] + oldlen, 0xff, s - oldlen); } -- 2.39.5