Skip to content

Commit

Permalink
Fix for bug in CHECK output where emtpy Marks:: lines could appear
Browse files Browse the repository at this point in the history
  • Loading branch information
jobe1986 committed Mar 23, 2014
1 parent de70294 commit 939a6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ircd/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void client_check_marks(struct Client *client, struct Client *replyto)
memset(&markbufp, 0, BUFSIZE);

for (dp = cli_marks(client); dp; dp = dp->next) {
if (strlen(markbufp) + strlen(dp->value.cp) + 4 > 70) {
if (markbufp[0] && strlen(markbufp) + strlen(dp->value.cp) + 4 > 70) {
ircd_snprintf(0, outbuf, sizeof(outbuf), " Marks:: %s", markbufp);
send_reply(replyto, RPL_DATASTR, outbuf);
memset(&markbufp, 0, BUFSIZE);
Expand Down

0 comments on commit 939a6a3

Please sign in to comment.