Skip to content

Commit

Permalink
offsetof -> TclOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Feb 14, 2024
1 parent 58afe92 commit fe878b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/tclIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -9227,7 +9227,7 @@ TclCopyChannel(
* completed.
*/

csPtr = (CopyState *)ckalloc(offsetof(CopyState, buffer) + 1U + !moveBytes * inStatePtr->bufSize);
csPtr = (CopyState *)ckalloc(TclOffset(CopyState, buffer) + 1U + !moveBytes * inStatePtr->bufSize);
csPtr->bufSize = !moveBytes * inStatePtr->bufSize;
csPtr->readPtr = inPtr;
csPtr->writePtr = outPtr;
Expand Down

0 comments on commit fe878b4

Please sign in to comment.