- if (termtype == 0)
- termtype = typeMalloc(char, MAX_NAME_SIZE + 1);
- if (termtype != 0) {
- termtype[0] = '\0';
- if (name)
- strncat(termtype, name, MAX_NAME_SIZE);
+#define MY_SIZE (size_t) MAX_NAME_SIZE
+ if (TermType == 0)
+ TermType = typeMalloc(char, MY_SIZE + 1);
+ if (TermType != 0) {
+ TermType[0] = '\0';
+ if (name) {
+ _nc_STRNCAT(TermType, name, MY_SIZE, MY_SIZE);
+ }