changeset 244:517c7b22b3c9

Buffer pointer handling was wrong in th_vaddch(), fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Apr 2011 18:55:19 +0300
parents 589f5e37dd91
children f92f0322cbf3 fce4e2e31d69
files th_string.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Wed Apr 20 18:54:26 2011 +0300
+++ b/th_string.c	Wed Apr 20 18:55:19 2011 +0300
@@ -463,7 +463,7 @@
     if (!th_growbuf(buf, bufsize, len, 1))
         return;
     
-    *buf[*len] = ch;
+    (*buf)[*len] = ch;
     (*len)++;
 }