Skip to content

Commit

Permalink
#7: Fix making strings with custom array sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggi committed Apr 27, 2018
1 parent 9ec2bef commit f95f984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmessage.inc
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static stock Zmsg_MakeString(dest[], const size = sizeof(dest), const src[],

// get pos
spos = Zmsg_ShiftStartPos(src, epos, is_packed, length);
epos = spos + ZMSG_MAX_CHAT_LENGTH - postfix_length - (last_color != -1 ? 8 : 0);
epos = spos + size - postfix_length - (last_color != -1 ? 8 : 0);

if (line != 0) {
epos -= prefix_length;
Expand Down

0 comments on commit f95f984

Please sign in to comment.