From: tedu Date: Fri, 9 Jan 2015 21:49:59 +0000 (+0000) Subject: absurd optimization. reduce initial space by one to avoid leaving one byte X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d6c685c1c6101dcbee171a95f62b78ab265690db;p=openbsd absurd optimization. reduce initial space by one to avoid leaving one byte hanging off on a page by itself. --- diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c index 7f13eca0fa7..861bbac82dd 100644 --- a/usr.bin/signify/signify.c +++ b/usr.bin/signify/signify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signify.c,v 1.96 2015/01/07 19:53:34 tedu Exp $ */ +/* $OpenBSD: signify.c,v 1.97 2015/01/09 21:49:59 tedu Exp $ */ /* * Copyright (c) 2013 Ted Unangst * @@ -179,7 +179,7 @@ readmsg(const char *filename, unsigned long long *msglenp) errx(1, "msg too large in %s", filename); space = sb.st_size + 1; } else { - space = 64 * 1024; + space = 64 * 1024 - 1; } msg = xmalloc(space + 1);