libdtsvc: Compiler warning prevention

This commit is contained in:
Peter Howkins
2018-04-02 21:31:50 +01:00
parent bcee6be5d8
commit b0c5941e3e
3 changed files with 8 additions and 5 deletions

View File

@@ -681,9 +681,10 @@ _DtActCheckRecord(
int i;
char *s;
char argnFieldName[
sizeof(_DtACTION_TTN_ARG) + /* ARGn prefix */
sizeof(_DtACTION_TTN_ARG) + /* ARGn prefix */
3 + /* space for 3 decimal digits */
sizeof(_DtACTION_TTN_REP_TYPE)]; /* space for longest suffix */
sizeof(_DtACTION_TTN_REP_TYPE) /* space for longest suffix */
+ 8]; /* addition space for warning prevention incase the digits are more than 3 */
char *buf;
myassert(actionType); /* actionType should never be NULL */