Changeset 3445 for trunk/src/kash/options.c
- Timestamp:
- Sep 10, 2020, 10:47:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/options.c
r3438 r3445 132 132 psh->shellparam.nparam = left = inherit->shellparam.nparam; 133 133 assert(left >= 0); 134 psh->shellparam.p = (char **)ckmalloc(psh, left + 1);134 psh->shellparam.p = (char **)ckmalloc(psh, (left + 1) * sizeof(psh->shellparam.p[0])); 135 135 psh->shellparam.p[left] = NULL; 136 136 while (left-- > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.