projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee4069
)
pacmd: handle multi word commands in argv[] properly
author
Lennart Poettering
<lennart@poettering.net>
Fri, 14 Aug 2009 02:12:36 +0000
(
04:12
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 14 Aug 2009 02:12:36 +0000
(
04:12
+0200)
src/utils/pacmd.c
patch
|
blob
|
history
diff --git
a/src/utils/pacmd.c
b/src/utils/pacmd.c
index
e4d054b
..
5ef57e3
100644
(file)
--- 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)) {