changeset 2294:b6c6603a8915

[gaim-migrate @ 2304] another buglet committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 17 Sep 2001 09:29:16 +0000
parents 88552158f19b
children 24dc9ce95127
files src/protocols/irc/irc.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Mon Sep 17 06:28:08 2001 +0000
+++ b/src/protocols/irc/irc.c	Mon Sep 17 09:29:16 2001 +0000
@@ -136,8 +136,10 @@
 			buf[j++] = 0;
 			word[wordcount] = &buf[j];
 			eol[wordcount++] = cmd + 1;
-			if (wordcount == PDIWORDS - 1)
-				*cmd-- = 0;
+			if (wordcount == PDIWORDS - 1) {
+				buf[j] = 0;
+				return;
+			}
 			space = TRUE;
 			break;
 		default: