mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-05 04:06:31 -05:00
pacmd: handle multi word commands in argv[] properly
This commit is contained in:
parent
05f239a74a
commit
81eeb0667e
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ int main(int argc, char*argv[]) {
|
|||
size_t k;
|
||||
|
||||
k = PA_MIN(sizeof(ibuf) - ibuf_length, strlen(argv[i]));
|
||||
memcpy(ibuf + ibuf_length, argv[1], k);
|
||||
memcpy(ibuf + ibuf_length, argv[i], k);
|
||||
ibuf_length += k;
|
||||
|
||||
if (ibuf_length < sizeof(ibuf)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue