summaryrefslogtreecommitdiff
path: root/usr.bin/dc/inout.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-01 13:13:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-12-01 13:13:01 +0000
commit4c359b74cbe39f232c2792fc1a2347b7be9c0e79 (patch)
treefa562cf8644a27a1c52ccc2d0eec0cb5ce087eca /usr.bin/dc/inout.c
parentac86e73e9650b4db811737e770a15bc7cf4be406 (diff)
more opportunity to use reallocarray(); ok otto
Diffstat (limited to 'usr.bin/dc/inout.c')
-rw-r--r--usr.bin/dc/inout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/dc/inout.c b/usr.bin/dc/inout.c
index 00832763f46..a96b6717ced 100644
--- a/usr.bin/dc/inout.c
+++ b/usr.bin/dc/inout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inout.c,v 1.17 2012/11/07 11:06:14 otto Exp $ */
+/* $OpenBSD: inout.c,v 1.18 2014/12/01 13:13:00 deraadt Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -256,7 +256,7 @@ read_string(struct source *src)
escape = false;
if (i == sz) {
new_sz = sz * 2;
- p = brealloc(p, new_sz + 1);
+ p = breallocarray(p, 1, new_sz + 1);
sz = new_sz;
}
p[i++] = ch;