From: Wouter Wijngaards Date: Wed, 16 Sep 2009 13:13:46 +0000 (+0000) Subject: sharper match. X-Git-Tag: release-1.4.0rc1~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aae91da6d2ed3da775201d4ca9b6c517db4d22a9;p=thirdparty%2Funbound.git sharper match. git-svn-id: file:///svn/unbound/trunk@1835 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/memstats.c b/testcode/memstats.c index fca3f2c2c..8cbd9f546 100644 --- a/testcode/memstats.c +++ b/testcode/memstats.c @@ -81,13 +81,13 @@ match(char* line) * [1187340064] unbound[24604:0] info: ul/rb.c:81 r_create malloc(12) * 0123456789 123456789 123456789 123456789 * But now also: - * Sep 16 15:18:20 unbound[17428:0] info: ul/nh.c:143 memdup malloc(11) + * Sep 16 15:18:20 unbound[1:0] info: ul/nh.c:143 memdup malloc(11) */ if(strlen(line) < 32) /* up to 'info: ' */ return 0; - if(!strstr(line, "] info: ")) + if(!strstr(line, " info: ")) return 0; - if(strstr(line, "info: stat")) + if(strstr(line, "info: stat ")) return 0; /* skip the hex dumps */ if(strstr(line+30, "malloc(")) return 1;