Skip to content

Commit

Permalink
fix suppressed 1st char of error message (#177)
Browse files Browse the repository at this point in the history
strange call to g_strjoin is fixed up.
  • Loading branch information
pbiering committed Jul 15, 2022
1 parent b7f127c commit 6fc3642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common-src/bsdtcp-security.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ bsdtcp_accept(

return_error:
{
char *errstr = g_strjoin(" ", errmsg, NULL);
size_t len = strlen(errmsg);
char *errstr = g_strjoin(NULL, " ", errmsg, NULL);
size_t len = strlen(errstr);
guint32 *nethandle = g_malloc(sizeof(guint32));
guint32 *netlength = g_malloc(sizeof(guint32));
struct iovec iov[3];
Expand Down

0 comments on commit 6fc3642

Please sign in to comment.