• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂422 (tree)
時間2012-04-11 22:05:28
作者ornse01

Log Message

fix allocate length mistake.

Change Summary

差異

--- bchanf/trunk/src/unittest/unittest_driver.c (revision 421)
+++ bchanf/trunk/src/unittest/unittest_driver.c (revision 422)
@@ -83,7 +83,7 @@
8383 if (entry == NULL) {
8484 return NULL;
8585 }
86- entry->name = malloc(sizeof(UB)*name_len);
86+ entry->name = malloc(sizeof(UB)*(name_len+1));
8787 if (entry->name == NULL) {
8888 free(entry);
8989 return NULL;
Show on old repository browser