diff options
author | Eugene Debrev <edebrev@gmail.com> | 2011-12-11 00:26:57 +0400 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-12-18 19:44:35 +0100 |
commit | a9add4168b36afb835a7b458851b863d3fa48030 (patch) | |
tree | 72daba601e638a0bdb0cd8a2d36ae8044f137227 /ringbuf.c | |
parent | 7ecfaa75788e62bca90c5608d161539297a0ba6d (diff) |
Fixed problems with handling command-line parameters.
The way Deadbeef used to handle command-line parameters
had a number of problems.
1. All parameters concatenated had to fit into a fixed
2048-byte buffer, excessive parameters were dropped.
Because of this the player used to truncate a list
of filenames.
2. When sending parameters over a Unix socket to remote
instance, Deadbeef did recv() just once, thus letting
the data be truncated.
3. Buffer overflow with use_gui_plugin.
4. Evey command-line parameter starting with '-' was treated
as a switch, not a track filename.
The changes made are as follows.
1. Now using dynamically resized buffer on both sides.
2. When sending message over socket, the sending party
does half-shutdown to mark end-of-message explicitly.
Diffstat (limited to 'ringbuf.c')
0 files changed, 0 insertions, 0 deletions