about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2005-08-28 11:47:02 +0000
committerFlorian Westphal <fw@strlen.de>2005-08-28 11:47:02 +0000
commit21ad5dcfffa492a949a832fa1631242f4bad7a7a (patch)
tree303faa6843e434e55cea05373f3576e919b430cc /src
parent4074fd9149756cccfce08845862bae87245570bb (diff)
downloadngircd-21ad5dcfffa492a949a832fa1631242f4bad7a7a.tar.gz
ngircd-21ad5dcfffa492a949a832fa1631242f4bad7a7a.zip
array_cat0_temporary(): removed confusing DEBUG messages
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/array.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/array.c b/src/ngircd/array.c
index bbff5a14..cbfdcd85 100644
--- a/src/ngircd/array.c
+++ b/src/ngircd/array.c
@@ -12,7 +12,7 @@
 
 #include "array.h"
 
-static char UNUSED id[] = "$Id: array.c,v 1.5 2005/07/28 16:12:50 fw Exp $";
+static char UNUSED id[] = "$Id: array.c,v 1.6 2005/08/28 11:47:02 fw Exp $";
 
 #include <assert.h>
 
@@ -235,11 +235,11 @@ array_cat0(array * a)
 bool
 array_cat0_temporary(array * a)
 {
-	unsigned int len = array_bytes(a);
-	if (!array_catb(a, "", 1))
+	char *endpos = array_alloc(a, 1, array_bytes(len));
+	if (!endpos)
 		return false;
 
-	array_truncate(a, 1, len);
+	*endpos = '\0';
 	return true;
 }