memeco / osd-lyrics

Automatically exported from code.google.com/p/osd-lyrics
GNU General Public License v3.0
1 stars 0 forks source link

[PATCH] Fix crash in cmus plugin #272

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
OSD Lyrics 0.4.3 crashes if cmus is running but no song has been played yet. 
Please change the line 173 of ol_player_cmus.c to:

gint64 cmus_time = CMUS_CfgValues[CSI_POS] != NULL ? strtol 
(CMUS_CfgValues[CSI_POS], NULL, 10) * 1000 : 0;

Previously it crashed because strtol was called with a NULL argument.

Original issue reported on code.google.com by alepul...@gmail.com on 9 Jun 2012 at 9:10

GoogleCodeExporter commented 8 years ago
fixed. Thanks for your patch

Original comment by tigerso...@gmail.com on 27 Jul 2012 at 1:27