Index: /trunk/Nebulous/nebclient/src/nebclient.c
===================================================================
--- /trunk/Nebulous/nebclient/src/nebclient.c	(revision 19551)
+++ /trunk/Nebulous/nebclient/src/nebclient.c	(revision 19552)
@@ -4,5 +4,5 @@
  * Copyright (C) 2005  Joshua Hoblitt
  *
- * $Id: nebclient.c,v 1.49 2008-09-12 00:34:11 jhoblitt Exp $
+ * $Id: nebclient.c,v 1.50 2008-09-15 21:23:36 jhoblitt Exp $
  */
 
@@ -68,5 +68,9 @@
     server->err_buf_size = ERRBUF_SIZE;
 
+    // init err buffer
+    memset(server->err_buf, 0, server->err_buf_size);
+
     soap_init(server->soap);
+    soap_set_namespaces(server->soap, namespaces); 
 
     return server;
@@ -120,5 +124,5 @@
     // if URI is not NULL
     if (URI) {
-        *URI = xmalloc(strlen((char *)response.result));
+        *URI = xmalloc(strlen((char *)response.result) + 1);
         strcpy(*URI, (char *)response.result);
     }
@@ -223,5 +227,5 @@
     // if URI is not NULL
     if (URI) {
-        *URI = xmalloc(strlen((char *)response.result));
+        *URI = xmalloc(strlen((char *)response.result) + 1);
         strcpy(*URI, (char *)response.result);
     }
