music player daemon (fork)
772dc6bc66
Avoid unnecessary memset to zero, snprintf always puts a trailing '\0'. We also have no need to subtract one from the buffer we're snprintf-ing it to. We also check the return value of snprintf to ensure it's not too long. I have a feeling we might as well avoid snprintf altogether so we don't have to worry about buffer sizing/stack overflow and just do a bunch of write(2)s, letting Nagle sort it out... Also, centralize some of the exit error handling in with goto. This makes the code a bit more consistent and maintainable as well as reducing code and binary size. git-svn-id: https://svn.musicpd.org/mpd/trunk@5395 09075e82-0dd4-0310-85a5-a0d7c8717e4f |
||
---|---|---|
doc | ||
m4 | ||
scripts | ||
src | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
configure.ac | ||
COPYING | ||
INSTALL | ||
Makefile.am | ||
README | ||
TODO | ||
UPGRADING |
Music Player Daemon (MPD) http://www.musicpd.org A daemon for playing music (mp3, ogg vorbis, and flac). Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved. Player control, info retrieval, and playlist management can all be managed remotely. To install MPD, see INSTALL. MPD includes 3 libraries in the source. libid3tag and libmad are released under the GPL and copyrighted by Robert Leslie (http://www.underbit.com/products/mad). mp4ff is released under the GPL and copyrighted by M. Bakker, Ahead Software AG (http://www.nero.com) and is distributed as a part of the FAAD2 - Freeware Advance Audio (AAC) Decoder. MPD is released under the GNU Public License. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For the full license, see COPYING.