diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-14 04:12:36 +0200 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-09-01 23:55:09 +0100 |
commit | 81eeb0667edddf587981f99631370dbcd00be3f2 (patch) | |
tree | 4b2334fe29f3ac0d3789ccd0d7da625c84353d63 | |
parent | 05f239a74a18fbda2406e2fc306a0f6c1b764d8a (diff) |
pacmd: handle multi word commands in argv[] properly
-rw-r--r-- | src/utils/pacmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c index d94f2665..46c44c28 100644 --- a/src/utils/pacmd.c +++ b/src/utils/pacmd.c @@ -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)) { |