summaryrefslogtreecommitdiff
path: root/usr.bin/signify/signify.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/signify/signify.c')
-rw-r--r--usr.bin/signify/signify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c
index fee496f7dfb..a6b1addbe35 100644
--- a/usr.bin/signify/signify.c
+++ b/usr.bin/signify/signify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signify.c,v 1.54 2014/03/16 18:12:08 tedu Exp $ */
+/* $OpenBSD: signify.c,v 1.55 2014/03/16 20:17:10 tedu Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -189,7 +189,7 @@ readmsg(const char *filename, unsigned long long *msglenp)
while (1) {
if (space == 0) {
- space = chunklen;
+ space = msglen + chunklen;
if (!(msg = realloc(msg, msglen + space + 1)))
errx(1, "realloc");
}