Missing or Munged Message Headers from hotwayd

There is a small bug in hotwayd-0.8 commands.c file that causes the message headers to be munged. From the forum, I was able to put together a small patch:

--- commands.c.orig     Wed Apr  7 10:36:18 2004
+++ commands.c  Wed Apr  7 11:50:35 2004
@@ -964,7 +964,9 @@
   if(!(dest = realloc(dest, curpos+i+1)))
     return NULL;

-  strlcat(dest, src, curpos+i+1);
+  // ORIG 0.8 VERSION strlcat(dest, src, curpos+i+1);
+  dest[curpos] = '\0';
+  strlcpy(&dest[curpos], src, i+1);

   return dest;
 }