]> git.eshelyaron.com Git - emacs.git/commitdiff
* coding.c (decode_coding_gap): Fix typo caught by static checking.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Mar 2013 20:03:31 +0000 (13:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Mar 2013 20:03:31 +0000 (13:03 -0700)
src/ChangeLog
src/coding.c

index 606a6bcb7f67091eeb8597cb2f2b8345de2e85e3..288996fffb223f8caf50f05fd6e476084f214658 100644 (file)
@@ -1,3 +1,7 @@
+2013-03-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coding.c (decode_coding_gap): Fix typo caught by static checking.
+
 2013-03-15  handa  <handa@gnu.org>
 
        * insdel.c (insert_from_gap): New arg text_at_gap_tail.
index 5047e1149bc0ab4476b5cf24e8d8cd9f3c182291..6cfcec905a193aedf798510d4827be4d6b712eef 100644 (file)
@@ -7632,7 +7632,7 @@ decode_coding_gap (struct coding_system *coding,
          if (coding->eol_seen == EOL_SEEN_CR)
            {
              unsigned char *src_end = GAP_END_ADDR;
-             unsigned char *src = src - coding->src_bytes;
+             unsigned char *src = src_end - coding->src_bytes;
 
              while (src < src_end)
                {