summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-26 15:15:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-07-26 15:15:22 (GMT)
commit60c1d787b1f560b078850157996e356b6cc08a6c (patch)
treec7de722b5ae033c6fdd982f97890bc552af82100 /win
parentb985fb89654fa2129bfc4cfa20853b10d7cc7184 (diff)
downloadtcl-60c1d787b1f560b078850157996e356b6cc08a6c.zip
tcl-60c1d787b1f560b078850157996e356b6cc08a6c.tar.gz
tcl-60c1d787b1f560b078850157996e356b6cc08a6c.tar.bz2
Simplify tenviron2utfdstr(), since 2nd argument is always -1.
Diffstat (limited to 'win')
-rw-r--r--win/tclWinTest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinTest.c b/win/tclWinTest.c
index 6ca49f6..a6143c9 100644
--- a/win/tclWinTest.c
+++ b/win/tclWinTest.c
@@ -584,7 +584,7 @@ TestplatformChmod(
/* Add in size required for each ACE entry in the ACL */
for (i = 0; i < nSids; ++i) {
newAclSize +=
- offsetof(ACCESS_ALLOWED_ACE, SidStart) + aceEntry[i].sidLen;
+ TclOffset(ACCESS_ALLOWED_ACE, SidStart) + aceEntry[i].sidLen;
}
newAcl = (PACL)ckalloc(newAclSize);
if (!InitializeAcl(newAcl, newAclSize, ACL_REVISION)) {