Skip to content

Commit

Permalink
nctime: expand basetime's size
Browse files Browse the repository at this point in the history
It ends up being `basetime_1 + basetime_2` with a space in between. Make
enough room to ensure that it is not truncated.
  • Loading branch information
mathstuf committed Jan 16, 2019
1 parent 8c33122 commit 82d72df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdispatch/nctime.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ cdParseRelunits(cdCalenType timetype, char* relunits, cdUnitTime* unit, cdCompTi
char charunits[CD_MAX_RELUNITS];
char basetime_1[CD_MAX_CHARTIME];
char basetime_2[CD_MAX_CHARTIME];
char basetime[CD_MAX_CHARTIME];
char basetime[2 * CD_MAX_CHARTIME + 1];
int nconv1, nconv2, nconv;

/* Parse the relunits */
Expand Down

0 comments on commit 82d72df

Please sign in to comment.