PR gas/1491
[deliverable/binutils-gdb.git] / gas / listing.c
index c8b6d63bc4f1823b4fb4c7751ece80f94ec7488f..d1c291c3aeb3b340c29e1fd7110a752b430d92dd 100644 (file)
@@ -342,7 +342,7 @@ listing_newline (char *ps)
          int seen_quote = 0;
          int seen_slash = 0;
 
-         for (copy = input_line_pointer - 1;
+         for (copy = input_line_pointer;
               *copy && (seen_quote
                         || is_end_of_line [(unsigned char) *copy] != 1);
               copy++)
@@ -353,13 +353,13 @@ listing_newline (char *ps)
                seen_quote = ! seen_quote;
            }
 
-         len = (copy - input_line_pointer) + 2;
+         len = copy - input_line_pointer + 1;
 
          copy = (char *) xmalloc (len);
 
          if (copy != NULL)
            {
-             char *src = input_line_pointer - 1;
+             char *src = input_line_pointer;
              char *dest = copy;
 
              while (--len)
This page took 0.033888 seconds and 4 git commands to generate.