about summary refs log tree commit diff
path: root/libio/iogetwline.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iogetwline.c')
-rw-r--r--libio/iogetwline.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/libio/iogetwline.c b/libio/iogetwline.c
index b7f111586a..760d54a013 100644
--- a/libio/iogetwline.c
+++ b/libio/iogetwline.c
@@ -86,32 +86,32 @@ _IO_getwline_info (fp, buf, n, delim, extract_delim, eof)
 	  *ptr++ = wc;
 	  n--;
 	}
-	else
-	  {
-	    wchar_t *t;
-	    if ((_IO_size_t) len >= n)
-	      len = n;
-	    t = wmemchr ((void *) fp->_wide_data->_IO_read_ptr, delim, len);
-	    if (t != NULL)
-	      {
-		_IO_size_t old_len = ptr - buf;
-		len = t - fp->_wide_data->_IO_read_ptr;
-		if (extract_delim >= 0)
-		  {
-		    ++t;
-		    if (extract_delim > 0)
-		      ++len;
-		  }
-		wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr,
-			 len);
-		fp->_wide_data->_IO_read_ptr = t;
-		return old_len + len;
-	      }
-	    wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, len);
-	    fp->_wide_data->_IO_read_ptr += len;
-	    ptr += len;
-	    n -= len;
-	  }
+      else
+	{
+	  wchar_t *t;
+	  if ((_IO_size_t) len >= n)
+	    len = n;
+	  t = wmemchr ((void *) fp->_wide_data->_IO_read_ptr, delim, len);
+	  if (t != NULL)
+	    {
+	      _IO_size_t old_len = ptr - buf;
+	      len = t - fp->_wide_data->_IO_read_ptr;
+	      if (extract_delim >= 0)
+		{
+		  ++t;
+		  if (extract_delim > 0)
+		    ++len;
+		}
+	      wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr,
+		       len);
+	      fp->_wide_data->_IO_read_ptr = t;
+	      return old_len + len;
+	    }
+	  wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, len);
+	  fp->_wide_data->_IO_read_ptr += len;
+	  ptr += len;
+	  n -= len;
+	}
     }
   return ptr - buf;
 }