? tftpd ? tftpd.8.manlint Index: tftpd.c =================================================================== RCS file: /cvs/src/usr.sbin/tftpd/tftpd.c,v retrieving revision 1.23 diff -u -p -r1.23 tftpd.c --- tftpd.c 19 Nov 2014 11:48:39 -0000 1.23 +++ tftpd.c 19 Nov 2014 11:51:57 -0000 @@ -854,13 +854,15 @@ again: } if (verbose) { - char nicebuf[MAXPATHLEN]; + char *nicebuf; - (void)strnvis(nicebuf, filename, MAXPATHLEN, - VIS_SAFE|VIS_OCTAL); + if (stravis(&nicebuf, filename, VIS_SAFE|VIS_OCTAL) == -1) + lerr(1, "stravis"); linfo("%s: %s request for '%s'", getip(&client->ss), client->opcode == WRQ ? "write" : "read", nicebuf); + + free(nicebuf); } if (rwmap != NULL)