summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/wind.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-21 20:46:49 +0000
committerrsc <devnull@localhost>2006-02-21 20:46:49 +0000
commit95409400f71c426d4ef5811f5dbdf1c0778464f5 (patch)
tree4443f8ea9f57b6fe0f33949d0dba65d4f9ce340f /src/cmd/acme/wind.c
parentc42a1d3d6168df56f966ea1f3ba3ef39ebbff4e4 (diff)
downloadplan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.tar.gz
plan9port-95409400f71c426d4ef5811f5dbdf1c0778464f5.zip
events buffer need not end in NUL
Diffstat (limited to 'src/cmd/acme/wind.c')
-rw-r--r--src/cmd/acme/wind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c
index a2106ed2..2f0328c8 100644
--- a/src/cmd/acme/wind.c
+++ b/src/cmd/acme/wind.c
@@ -679,7 +679,7 @@ winevent(Window *w, char *fmt, ...)
if(b == nil)
error("vsmprint failed");
n = strlen(b);
- w->events = realloc(w->events, w->nevents+1+n);
+ w->events = erealloc(w->events, w->nevents+1+n);
w->events[w->nevents++] = w->owner;
memmove(w->events+w->nevents, b, n);
free(b);