From: tedu Date: Thu, 15 Jan 2015 22:21:01 +0000 (+0000) Subject: use PATH_MAX for path buffers. in case, you know... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f30a54aae12916ff52b0e07997cb9c317fbf3574;p=openbsd use PATH_MAX for path buffers. in case, you know... --- diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c index 861bbac82dd..7ef990d9ad7 100644 --- a/usr.bin/signify/signify.c +++ b/usr.bin/signify/signify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signify.c,v 1.97 2015/01/09 21:49:59 tedu Exp $ */ +/* $OpenBSD: signify.c,v 1.98 2015/01/15 22:21:01 tedu Exp $ */ /* * Copyright (c) 2013 Ted Unangst * @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -507,7 +508,7 @@ verify(const char *pubkeyfile, const char *msgfile, const char *sigfile, #ifndef VERIFYONLY #define HASHBUFSIZE 224 struct checksum { - char file[1024]; + char file[PATH_MAX]; char hash[HASHBUFSIZE]; char algo[32]; }; @@ -647,7 +648,7 @@ main(int argc, char **argv) { const char *pubkeyfile = NULL, *seckeyfile = NULL, *msgfile = NULL, *sigfile = NULL; - char sigfilebuf[1024]; + char sigfilebuf[PATH_MAX]; const char *comment = "signify"; int ch, rounds; int embedded = 0;