wmtv: Config file handling.
commit61e2c5f228c23d0caa14f50218fc357b5267ee53
authorDoug Torrance <dtorrance@piedmont.edu>
Mon, 1 Feb 2016 05:45:08 +0000 (1 00:45 -0500)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 1 Feb 2016 09:56:00 +0000 (1 15:26 +0530)
treeeb4c519c590a71d2cebac88c824a88ba6b97126f
parent0703ba0b8225fcdca78e1df2c7e6e6f356f89a39
wmtv: Config file handling.

Patch by Yann Vernier <yann@algonet.se>.  From [1]:

   wmtv failed to read my .wmtvrc (hand written) correctly, I tracked it
   down to incorrect memory management (sizeof() instead of strlen()).
   The code was so bad that I chose to rewrite it to a simpler version,
   patch below.

   Other bugs fixed include some of the memory leaks (which are quite
   numerous) and truncating the .wmtvrc when writing to it.

   Cosmetic changes include keeping comments in .wmtvrc, C++-style
   comments changed to C style, and numbering channels from 1.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=105325
wmtv/src/wmtv.c