simon-git: putty (pre-0.83): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Jan 25 10:55:11 GMT 2025
TL;DR:
9ab416e0 request_file: fix wchar_t buffer length.
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: pre-0.83
Committer: Simon Tatham <anakin at pobox.com>
Date: 2025-01-25 10:55:11
commit 9ab416e0189181dee38103bb1e90df9b3ae5cb4a
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=9ab416e0189181dee38103bb1e90df9b3ae5cb4a;hp=ec158a2e19c9f81b3676e157652d93955789f423
Author: SATO Kentaro <kentaro at ranvis.com>
Date: Sun Jan 19 22:42:49 2025 +0900
request_file: fix wchar_t buffer length.
[SGT: the helper function do_filereq_w expects its filename size to be
in characters, not bytes, because it's used both as an index into the
wchar_t buffer and also as nMaxFile in the OPENFILENAMEW structure
which is also documented as measured in characters. So at the call
site it should be measured via lenof rather than sizeof. This patch
has done the same with the char version, which makes no functional
difference but keeps the code more consistent.]
windows/utils/request_file.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
More information about the tartarus-commits
mailing list