projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45b9d1c
)
Fix bug in array size calculation
author
Ken Raeburn
<raeburn@mit.edu>
Wed, 6 Aug 2008 15:47:24 +0000
(15:47 +0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Wed, 6 Aug 2008 15:47:24 +0000
(15:47 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20610
dc483132
-0cff-0310-8789-
dd5450dbe970
src/util/ss/request_tbl.c
patch
|
blob
|
history
diff --git
a/src/util/ss/request_tbl.c
b/src/util/ss/request_tbl.c
index 46eb3a0ad7e795f2541dc755d0b6ecd0af998dfb..a214eb05d9e26494ecf57f9788617960c2adfb82 100644
(file)
--- a/
src/util/ss/request_tbl.c
+++ b/
src/util/ss/request_tbl.c
@@
-25,7
+25,7
@@
ss_add_request_table(sci_idx, rqtbl_ptr, position, code_ptr)
/* size == C subscript of NULL == #elements */
size += 2; /* new element, and NULL */
info->rqt_tables = (ssrt **)realloc(info->rqt_tables,
- size*sizeof(ssrt));
+ size*sizeof(ssrt
*
));
if (info->rqt_tables == (ssrt **)NULL) {
*code_ptr = errno;
return;