summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-03-28 16:52:22 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-03-28 16:52:22 +0000
commita9b416a1909ef14cd3265d352f7cc09a1e911108 (patch)
treedb8a83ea5db98a30da074fb492d5d30777435394 /usr.sbin
parent5d31bde84edda966d79344348f8121cb60eb1cb4 (diff)
We were malloc()ing one byte more than we needed; Alexander Farber
Closes PR #3168
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/config/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index 7b5e0c9554a..3c9be7fbe31 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.29 2002/09/06 19:02:06 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.30 2003/03/28 16:52:21 millert Exp $ */
/* $NetBSD: main.c,v 1.22 1997/02/02 21:12:33 thorpej Exp $ */
/*
@@ -217,7 +217,7 @@ main(argc, argv)
(void)addmkoption(intern("PROF"), "-pg");
(void)addoption(intern("GPROF"), NULL);
} else {
- int len = strlen(last_component) + 13;
+ int len = strlen(last_component) + 12;
p = emalloc(len);
(void)snprintf(p, len, "../compile/%s", last_component);
}