diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-01-25 16:51:56 +0100 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-01-27 09:58:37 +0100 |
| commit | bfa514c4613b39e536d4a9dfbcb8eb8e68776343 (patch) | |
| tree | e82504f453492b8c03805ef3fde4ef1ba19269cc /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | cc051fbd7f40226cc407558bc97c5099513e8657 (diff) | |
ALSA: jack: Improve string handling in jack_kctl_name_gen
If appending " Jack" is not necessary, replace snprintf("%s", ...) with
the faster strscpy().
Additionally, rename 'need_cat' to the clearer 'append_suf', use local
variables for the suffix and its length, remove the confusing comment,
compare strncmp() to 0, and use 'size_t' for the 'size' function
parameter.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260125155159.98720-1-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
