artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cb5b72
)
absurd optimization. reduce initial space by one to avoid leaving one byte
author
tedu
<tedu@openbsd.org>
Fri, 9 Jan 2015 21:49:59 +0000
(21:49 +0000)
committer
tedu
<tedu@openbsd.org>
Fri, 9 Jan 2015 21:49:59 +0000
(21:49 +0000)
hanging off on a page by itself.
usr.bin/signify/signify.c
patch
|
blob
|
history
diff --git
a/usr.bin/signify/signify.c
b/usr.bin/signify/signify.c
index
7f13eca
..
861bbac
100644
(file)
--- a/
usr.bin/signify/signify.c
+++ b/
usr.bin/signify/signify.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: signify.c,v 1.9
6 2015/01/07 19:53:34
tedu Exp $ */
+/* $OpenBSD: signify.c,v 1.9
7 2015/01/09 21:49:59
tedu Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@
-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);