From d6c685c1c6101dcbee171a95f62b78ab265690db Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 9 Jan 2015 21:49:59 +0000 Subject: [PATCH] absurd optimization. reduce initial space by one to avoid leaving one byte hanging off on a page by itself. --- usr.bin/signify/signify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1