From: Koichi KAMICHI Date: Fri, 5 Mar 2004 06:24:26 +0000 (+0000) Subject: Fixed database-read bug. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5ca6fd5e7fbdabbc14e8cdac2a418391475b5b33;p=chise%2Fkage.git Fixed database-read bug. --- 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,");