projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
043f0c8
)
Fix a bug in the output of para_audioc.
author
Andre Noll
<maan@systemlinux.org>
Sun, 5 Jul 2009 08:40:55 +0000
(10:40 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sun, 5 Jul 2009 08:54:19 +0000
(10:54 +0200)
This bites In case of short writes to stdout. The bug was literally there since day one
but never showed up as short writes usually don't happen with the rather small amount
of data that is written by para_audioc.
audioc.c
patch
|
blob
|
history
diff --git
a/audioc.c
b/audioc.c
index
666990d
..
5c081da
100644
(file)
--- a/
audioc.c
+++ b/
audioc.c
@@
-151,6
+151,8
@@
int main(int argc, char *argv[])
goto out;
}
loaded -= ret;
+ if (loaded && ret)
+ memmove(buf, buf + ret, loaded);
}
}
out: