Changeset 783 in openpam
- Timestamp:
- Mar 10, 2014, 11:13:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/t_rfc4648.c
r778 r783 188 188 { 189 189 struct t_case *t = arg; 190 char buf[ 64];190 char buf[256]; 191 191 size_t len; 192 192 int ret; … … 230 230 n = sizeof t_cases / sizeof t_cases[0]; 231 231 if ((plan = calloc(n + 1, sizeof *plan)) == NULL || 232 (tests = calloc(n + 1, sizeof *tests)) == NULL)232 (tests = calloc(n, sizeof *tests)) == NULL) 233 233 return (NULL); 234 234 for (i = 0; i < n; ++i) { … … 238 238 tests[i].arg = &t_cases[i]; 239 239 } 240 plan[n] = NULL; 240 241 return ((const struct t_test **)plan); 241 242 }
Note: See TracChangeset
for help on using the changeset viewer.