Return to cu.c CVS log | Up to [local] / src / usr.bin / cu |
version 1.19, 2014/04/12 12:47:43 | version 1.20, 2015/01/16 06:40:06 | ||
---|---|---|---|
|
|
||
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*/ | */ | ||
#include <sys/param.h> | |||
#include <sys/ioctl.h> | #include <sys/ioctl.h> | ||
#include <ctype.h> | #include <ctype.h> | ||
|
|
||
#include <string.h> | #include <string.h> | ||
#include <termios.h> | #include <termios.h> | ||
#include <unistd.h> | #include <unistd.h> | ||
#include <limits.h> | |||
#include "cu.h" | #include "cu.h" | ||
|
|
||
if ((rv = asprintf(&out, "%s%s%s", pw->pw_dir, sep, filename)) == -1) | if ((rv = asprintf(&out, "%s%s%s", pw->pw_dir, sep, filename)) == -1) | ||
cu_err(1, "asprintf"); | cu_err(1, "asprintf"); | ||
if (rv >= MAXPATHLEN) { | if (rv >= PATH_MAX) { | ||
free(out); | free(out); | ||
goto no_change; | goto no_change; | ||
} | } |