mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-04-04 12:04:52 +08:00
[Fix] nvm_resolve_local_alias: avoid using variable as printf format string
Using a variable as the format string means `%` characters in alias names would be interpreted as format specifiers.
Use `%b` format with the variable as an argument to safely interpret `\n` escapes.
Bug introduced in 9b91734f0b.
This commit is contained in:
Reference in New Issue
Block a user