From 5ca6fd5e7fbdabbc14e8cdac2a418391475b5b33 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Fri, 5 Mar 2004 06:24:26 +0000 Subject: [PATCH] Fixed database-read bug. --- kagecgi/kagedb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kagecgi/kagedb.c b/kagecgi/kagedb.c index 9254227..efbf7b8 100755 --- a/kagecgi/kagedb.c +++ b/kagecgi/kagedb.c @@ -40,6 +40,7 @@ void searchPartsData(const GString *in, GString *out){ temp2 = g_string_new(""); kDatabase->get(kDatabase, &dbkey, &dbdata, 0); if(dbdata.size != 0){ + ((char *)dbdata.data)[dbdata.size] = '\0'; //set null-stop to the result data //first:search selected shotai if(kShotai == kMincho) start = strstr(dbdata.data, ",mincho,"); else start = strstr(dbdata.data, ",gothic,"); -- 1.7.10.4