changeset 34:f5d335771b16

Fix a bug with mixed editBuf->pos vs editBuf->len.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Aug 2008 14:39:21 +0300
parents e49ea6febfeb
children c725b0dc6268
files nnchat.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Tue Aug 05 08:42:57 2008 +0300
+++ b/nnchat.c	Tue Aug 05 14:39:21 2008 +0300
@@ -991,7 +991,7 @@
 	memset(histBuf, 0, sizeof(histBuf));
 	
 	/* Initialize */
-	th_init("NNChat", "Newbie Nudes chat client", "0.5",
+	th_init("NNChat", "Newbie Nudes chat client", "0.6",
 		"Written and designed by Anonymous Finnish Guy (C) 2008",
 		"This software is freeware, use and distribute as you wish.");
 	th_verbosityLevel = 0;
@@ -1177,7 +1177,7 @@
 					histBuf[1] = copyBuf(editBuf);
 					if (histMax < SET_MAX_HISTORY) histMax++;
 					
-					insertBuf(editBuf, editBuf->pos, 0);
+					insertBuf(editBuf, editBuf->len, 0);
 					result = handleUserInput(tmpSocket, editBuf->data, editBuf->len);
 					
 					clearBuf(editBuf);