* coding.c (decode_coding_gap): Fix typo caught by static checking.
[bpt/emacs.git] / src / coding.c
index 5047e11..6cfcec9 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)
                {