aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/doc.c b/src/doc.c
index 3a53dc5174e..2d75ffe9753 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -725,7 +725,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
725 bsize = SBYTES (string); 725 bsize = SBYTES (string);
726 bufp = buf = (unsigned char *) xmalloc (bsize); 726 bufp = buf = (unsigned char *) xmalloc (bsize);
727 727
728 strp = (unsigned char *) SDATA (string); 728 strp = SDATA (string);
729 while (strp < SDATA (string) + SBYTES (string)) 729 while (strp < SDATA (string) + SBYTES (string))
730 { 730 {
731 if (strp[0] == '\\' && strp[1] == '=') 731 if (strp[0] == '\\' && strp[1] == '=')
@@ -761,7 +761,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
761 start = strp; 761 start = strp;
762 start_idx = start - SDATA (string); 762 start_idx = start - SDATA (string);
763 763
764 while ((strp - (unsigned char *) SDATA (string) 764 while ((strp - SDATA (string)
765 < SBYTES (string)) 765 < SBYTES (string))
766 && *strp != ']') 766 && *strp != ']')
767 strp++; 767 strp++;
@@ -770,7 +770,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
770 strp++; /* skip ] */ 770 strp++; /* skip ] */
771 771
772 /* Save STRP in IDX. */ 772 /* Save STRP in IDX. */
773 idx = strp - (unsigned char *) SDATA (string); 773 idx = strp - SDATA (string);
774 tem = Fintern (make_string (start, length_byte), Qnil); 774 tem = Fintern (make_string (start, length_byte), Qnil);
775 775
776 /* Note the Fwhere_is_internal can GC, so we have to take 776 /* Note the Fwhere_is_internal can GC, so we have to take
@@ -821,8 +821,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
821 start = strp; 821 start = strp;
822 start_idx = start - SDATA (string); 822 start_idx = start - SDATA (string);
823 823
824 while ((strp - (unsigned char *) SDATA (string) 824 while ((strp - SDATA (string) < SCHARS (string))
825 < SCHARS (string))
826 && *strp != '}' && *strp != '>') 825 && *strp != '}' && *strp != '>')
827 strp++; 826 strp++;
828 827
@@ -830,7 +829,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
830 strp++; /* skip } or > */ 829 strp++; /* skip } or > */
831 830
832 /* Save STRP in IDX. */ 831 /* Save STRP in IDX. */
833 idx = strp - (unsigned char *) SDATA (string); 832 idx = strp - SDATA (string);
834 833
835 /* Get the value of the keymap in TEM, or nil if undefined. 834 /* Get the value of the keymap in TEM, or nil if undefined.
836 Do this while still in the user's current buffer 835 Do this while still in the user's current buffer