diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-14 04:12:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-14 04:12:36 +0200 |
commit | aae7054b1c442e62cc1154d15a4b7a569d60d8f4 (patch) | |
tree | 1468a8fbd40ccb2d2d118c0e2af8cedafeb3f3ef /src/utils | |
parent | 5ee4069e9e68f81a71d208bb720d0c6bc6112fdc (diff) |
pacmd: handle multi word commands in argv[] properly
Diffstat (limited to 'src/utils')
-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 e4d054b8..5ef57e3b 100644 --- a/src/utils/pacmd.c +++ b/src/utils/pacmd.c @@ -116,7 +116,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)) { |