Lint part 1, unused variables, routines, and return codes.
This commit is contained in:
@@ -336,7 +336,7 @@ register int x,y;
|
||||
char *et;
|
||||
unsigned maxelen = BUFSZ - sizeof("You feel the words: \"\". ");
|
||||
if (strlen(ep->engr_txt) > maxelen) {
|
||||
strncpy(buf, ep->engr_txt, maxelen);
|
||||
(void) strncpy(buf, ep->engr_txt, maxelen);
|
||||
buf[maxelen] = '\0';
|
||||
et = buf;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user