changeset 33426:fe99e2d4ffb1

Avoid crash if terminating " is missing. Part of patch by Ivan Kalvachev [ikalvachev gmail com].
author reimar
date Sun, 29 May 2011 11:43:38 +0000
parents 15659ae10207
children ebee3b6ab9ce
files stream/stream_cue.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cue.c	Sun May 29 11:41:40 2011 +0000
+++ b/stream/stream_cue.c	Sun May 29 11:43:38 2011 +0000
@@ -186,7 +186,7 @@
   {
     firstline += 6;
     i = 0;
-    while ( *firstline != '"')
+    while ( *firstline && *firstline != '"')
     {
       bin_filename[i] = *firstline++;