changeset 2556:a221f10fd105 trunk

[svn] - or comparison should be an and comparison
author nenolod
date Tue, 20 Feb 2007 08:11:40 -0800
parents 22da0618297e
children cacbc968782b
files ChangeLog src/audacious/build_stamp.c src/audacious/util.c
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Feb 20 07:35:05 2007 -0800
+++ b/ChangeLog	Tue Feb 20 08:11:40 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-20 15:35:05 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4120]
+  - handle MS-DOS line endings.
+  
+  trunk/src/audacious/util.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-02-20 12:54:56 +0000  Jonathan Schleifer <js@h3c.de>
   revision [4118]
   Use VFS.
--- a/src/audacious/build_stamp.c	Tue Feb 20 07:35:05 2007 -0800
+++ b/src/audacious/build_stamp.c	Tue Feb 20 08:11:40 2007 -0800
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070220-4118";
+const gchar *svn_stamp = "20070220-4120";
--- a/src/audacious/util.c	Tue Feb 20 07:35:05 2007 -0800
+++ b/src/audacious/util.c	Tue Feb 20 08:11:40 2007 -0800
@@ -518,7 +518,7 @@
             if (off >= filesize)
                 goto return_sequence;
 
-            while (buffer[off] != '\n' || buffer[off] != '\r')
+            while (buffer[off] != '\n' && buffer[off] != '\r')
             {
                 g_string_append_c(value, buffer[off]);
                 off++;