diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-05-23 06:48:45 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-05-25 07:10:42 +0200 |
| commit | fb8eb42874a41de41a8e1adfba96ef6fa6308561 (patch) | |
| tree | e00c8a5800dd4805eca2a41d47b2572227b31168 /Completion/Unix | |
| parent | 54598: fix getfpfunc metafication (diff) | |
| download | zsh-fb8eb42874a41de41a8e1adfba96ef6fa6308561.tar zsh-fb8eb42874a41de41a8e1adfba96ef6fa6308561.tar.gz zsh-fb8eb42874a41de41a8e1adfba96ef6fa6308561.tar.bz2 zsh-fb8eb42874a41de41a8e1adfba96ef6fa6308561.tar.lz zsh-fb8eb42874a41de41a8e1adfba96ef6fa6308561.tar.xz zsh-fb8eb42874a41de41a8e1adfba96ef6fa6308561.tar.zst zsh-fb8eb42874a41de41a8e1adfba96ef6fa6308561.zip | |
54599: use correct buf size in cancd
When path is metafied, it can be longer than PATH_MAX, so use MAXCMDLEN.
Using ztrlen >= PATH_MAX instead of strlen >= MAXCMDLEN is just a minor
optimization to avoid the syscall if we know the path is too long anyway,
but it's not worth doing this extra check on the result of the snprintf
call (probably).
Diffstat (limited to 'Completion/Unix')
0 files changed, 0 insertions, 0 deletions
