Files
zig/lib/std
Ryan Liptak 423761bb6d createWindowsEnvBlock: Reduce NUL terminator count to only what's required
This code previously added 4 NUL code units, but that was likely due to a misinterpretation of this part of the CreateProcess documentation:

> A Unicode environment block is terminated by four zero bytes: two for the last string, two more to terminate the block.

(four zero *bytes* means *two* zero code units)

Additionally, the second zero code unit is only actually needed when the environment is empty due to a quirk of the CreateProcess implementation. In the case of a non-empty environment, there always ends up being two trailing NUL code units since one will come after the last environment variable in the block.
2025-03-17 17:53:38 -07:00
..
2025-03-11 14:59:29 +00:00
2025-03-15 12:14:00 +01:00
2024-12-19 17:10:03 -05:00
2025-02-22 14:32:48 -08:00
2025-03-09 07:41:06 +01:00
2025-02-22 22:21:24 -08:00
2024-07-23 11:43:12 -07:00
2025-03-07 22:22:01 +01:00
2024-07-09 14:25:42 -07:00
2025-02-05 13:58:15 +01:00
2024-08-22 08:44:08 +02:00
2025-02-06 14:23:23 -08:00
2025-02-18 18:07:31 +03:30
2025-02-22 14:32:48 -08:00
2024-08-07 00:48:32 -07:00
2024-07-31 16:57:42 -07:00
2024-08-29 23:43:52 +01:00
2025-01-16 20:42:08 -05:00
2025-02-06 14:23:23 -08:00
2025-02-06 14:23:23 -08:00
2025-02-03 09:14:37 +00:00