• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂519 (tree)
時間2012-07-08 18:13:13
作者ornse01

Log Message

change converting string buffer for TNULL-terminated string.

Change Summary

差異

--- bchanl/trunk/src/extbbslist.c (revision 518)
+++ bchanl/trunk/src/extbbslist.c (revision 519)
@@ -151,13 +151,13 @@
151151 memcpy(str, url, sizeof(TC)*url_len);
152152 str[url_len] = TNULL;
153153
154- len = tcstosjs(NULL, url);
154+ len = tcstosjs(NULL, str);
155155 str_ac = malloc(sizeof(UB)*(len+1));
156156 if (str_ac == NULL) {
157157 free(str);
158158 return -1; /* TODO */
159159 }
160- tcstosjs(str_ac, url);
160+ tcstosjs(str_ac, str);
161161 str_ac[len] = '\0';
162162
163163 extbbslist_item_replaceTCurl(item, str, url_len);
Show on old repository browser