From fbd51e07dadf2a2bd687c79cadde487e879fd877 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 27 Aug 1996 23:48:12 +0000 Subject: [PATCH] bug --- src/cache_cf.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cache_cf.cc b/src/cache_cf.cc index b356a27632..e5843c4fd4 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,5 +1,5 @@ /* - * $Id: cache_cf.cc,v 1.73 1996/08/26 23:26:11 wessels Exp $ + * $Id: cache_cf.cc,v 1.74 1996/08/27 17:48:12 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -596,7 +596,8 @@ static void parseQuickAbort() Config.quickAbort.pct = 0; Config.quickAbort.max = 0; } else { - GetInteger(i); + if (sscanf(token, "%d", &i) != 1) + self_destruct(); Config.quickAbort.min = i * 1024; GetInteger(i); Config.quickAbort.pct = i * 128 / 100; /* 128 is full scale */ -- 2.47.3