In some safeputchar() calls, *(p).
case MFR_CTRL_IE_LINK_ID:
for (idx = 0; idx < ie_len && idx < MFR_ID_STRING_MAXLEN; idx++) {
if (*(tptr+idx) != 0) /* don't print null termination */
- safeputchar(ndo, *(tptr + idx));
+ safeputchar(ndo, EXTRACT_U_1(tptr + idx));
else
break;
}
break;
}
while (i-- && cp < ep) {
- safeputchar(ndo, *cp);
+ safeputchar(ndo, EXTRACT_U_1(cp));
cp++;
}
if (cp + 1 < ep && EXTRACT_U_1(cp))
cp++;
ND_PRINT((ndo,", \""));
while (cp < ep) {
- safeputchar(ndo, *cp);
+ safeputchar(ndo, EXTRACT_U_1(cp));
cp++;
}
ND_PRINT((ndo,"\""));
cp++;
ND_PRINT((ndo,", \""));
while (cp < ep) {
- safeputchar(ndo, *cp);
+ safeputchar(ndo, EXTRACT_U_1(cp));
cp++;
}
ND_PRINT((ndo,"\""));
case LDP_FEC_MARTINI_IFPARM_DESC:
ND_PRINT((ndo, ": "));
for (idx = 2; idx < vc_info_tlv_len; idx++)
- safeputchar(ndo, *(tptr + idx));
+ safeputchar(ndo, EXTRACT_U_1(tptr + idx));
break;
case LDP_FEC_MARTINI_IFPARM_VCCV:
/* print the syslog text in verbose mode */
for (; msg_off < len; msg_off++) {
ND_TCHECK_1(pptr + msg_off);
- safeputchar(ndo, *(pptr + msg_off));
+ safeputchar(ndo, EXTRACT_U_1(pptr + msg_off));
}
if (ndo->ndo_vflag > 1)