At the end of the file (bnet_server.c), I believe the len param should
be the third param in the calls to bstrncpy and bstrncat and not the
second.

len = strlen(caller) + strlen(who) + 3;
      buf = (char *)malloc(len);
      bstrncpy(buf, len, who);
      bstrncat(buf, len, ": ");
      bstrncat(buf, len, caller);
      bs = init_bsock(NULL, newsockfd, _("client"), buf, bsock->port,
&cli_addr);
      free(buf);
      return bs;
   }
}


-- 
John M. Drescher

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to