src/ls-oct-ascii.cc
changeset 7685 34b75a47e712
parent 7566 fd669d081438
     1.1 --- a/src/ls-oct-ascii.cc	Mon Sep 08 12:45:53 2008 -0400
     1.2 +++ b/src/ls-oct-ascii.cc	Wed Mar 18 15:23:14 2009 +0100
     1.3 @@ -108,14 +108,8 @@
     1.4  	      while (is.get (c) && (c == ' ' || c == '\t' || c == ':'))
     1.5  		; // Skip whitespace and the colon.
     1.6  
     1.7 -	      if (c != '\n' && c != '\r')
     1.8 -		{
     1.9 -		  value << c;
    1.10 -		  while (is.get (c) && c != '\n' && c != '\r')
    1.11 -		    value << c;
    1.12 -		}
    1.13 -
    1.14 -	      retval = value.str ();
    1.15 +	      is.putback(c);
    1.16 +	      retval = read_until_newline (is, false);
    1.17  	      break;
    1.18  	    }
    1.19  	  else if (next_only)