Skip to content

Commit

Permalink
Borland C++: fix snprintf bug
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed May 22, 2023
1 parent bf995a4 commit 80bcde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/tvision/snprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static size_t _PASCAL _NEAR strnputn(const void *s, size_t n, void *outP)
size_t copyLen = min(n, bufLen - 1);
memcpy(buf.cur, s, copyLen);
buf.cur[copyLen] = '\0';
buf.cur += copyLen + 1;
buf.cur += copyLen;
}
return n;
}
Expand Down

0 comments on commit 80bcde6

Please sign in to comment.