# HG changeset patch # User Matti Hamalainen # Date 1303314919 -10800 # Node ID 517c7b22b3c97a8356818f7c225e423c6e97a8c6 # Parent 589f5e37dd91c444e735bb74eaa655dc11ec53bc Buffer pointer handling was wrong in th_vaddch(), fixed. diff -r 589f5e37dd91 -r 517c7b22b3c9 th_string.c --- 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)++; }