From 84266153cb5a4d060a66899df0be6f334d7660dc Mon Sep 17 00:00:00 2001 From: ornse01 Date: Sun, 26 Dec 2010 05:03:27 +0000 Subject: [PATCH] fix handling ID string mistake. git-svn-id: http://svn.sourceforge.jp/svnroot/bchan/bchan/trunk@159 20a0b8eb-f62a-4a12-8fe1-b598822500fb --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 20b9f84..0c0c183 100644 --- a/src/main.c +++ b/src/main.c @@ -1210,7 +1210,8 @@ error_cache: LOCAL W bchan_layout_appendres(bchan_t *bchan, datparser_res_t *res) { - W err, ret, index; + W err, ret, index, id_len; + TC *id; UW attr; COLOR color; Bool found; @@ -1227,7 +1228,8 @@ LOCAL W bchan_layout_appendres(bchan_t *bchan, datparser_res_t *res) } index = datlayoutarray_length(bchan->layoutarray) - 1; - ret = datcache_searchresiddata(bchan->cache, res->dateinfo.id, res->dateinfo.id_len, &attr, &color); + datlayout_res_getid(layout_res, &id, &id_len); + ret = datcache_searchresiddata(bchan->cache, id, id_len, &attr, &color); if (ret == DATCACHE_SEARCHRESIDDATA_FOUND) { bchan_layout_res_updateattrbyid(layout_res, attr, color); } -- 2.11.0