summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/libdraw/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libdraw/init.c b/sys/src/libdraw/init.c
index d5d97a980..b65ade357 100644
--- a/sys/src/libdraw/init.c
+++ b/sys/src/libdraw/init.c
@@ -253,7 +253,7 @@ initdisplay(char *dev, char *win, void(*error)(Display*, char*))
}
if(n==NINFO+1)
n = NINFO;
- buf[n] = '\0';
+ info[n] = '\0';
isnew = 0;
if(n < NINFO) /* this will do for now, we need something better here */
isnew = 1;