projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d344ec0
)
mpd_client: fix allocation of outputs
author
Kurt Van Dijck
<dev.kurt@vandijck-laurijssen.be>
Fri, 1 May 2015 21:33:07 +0000
(23:33 +0200)
committer
Kurt Van Dijck
<dev.kurt@vandijck-laurijssen.be>
Fri, 1 May 2015 21:33:07 +0000
(23:33 +0200)
src/mpd_client.c
patch
|
blob
|
history
diff --git
a/src/mpd_client.c
b/src/mpd_client.c
index
c276bee
..
39e1f5d
100644
(file)
--- a/
src/mpd_client.c
+++ b/
src/mpd_client.c
@@
-455,7
+455,7
@@
int mpd_put_outputs(char *buffer)
idx = mpd_output_get_id(out);
if (idx >= soutputs) {
/* realloc some more */
- soutputs = (idx + 15) & ~15; /* round up to 16 */
+ soutputs = (idx + 1
+ 1
5) & ~15; /* round up to 16 */
outputs = realloc(outputs, sizeof(*outputs)*soutputs);
if (!outputs)
exit(1);