[Fix] `nvm_resolve_local_alias`: avoid using variable as printf format string
Before adoption: this commit came in with the history the project adopted, so no landing records it.
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 https://github.com/nvm-sh/nvm/commit/9b91734f0b6a210f0c6655b0cd25ea288d9ae376.
authored by Jordan Harband · committed by Jordan Harband · parent 3c48015 · Browse files · 5 files+43 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+43 added−1 removed
- tests:+42 added−0 removed
- other:+1 added−1 removed