Changeset 171 for trunk/src/trustfile.c
- Timestamp:
- Jul 8, 2008, 11:16:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trustfile.c
r170 r171 782 782 register int i; /* trustworthy or not? */ 783 783 const char * t_const; 784 char *end; 784 785 785 786 /* … … 810 811 if (csym[0] != '/') 811 812 { 813 /* pointer to one above last element 814 */ 815 end = &full[MAXFILENAME-1]; ++end; 816 812 817 /* initialize pointers 813 818 */ … … 817 822 */ 818 823 t = fexp; 819 while(*t && b < &full[MAXFILENAME])824 while(*t && b < end) 820 825 *b++ = *t++; 821 826 … … 823 828 */ 824 829 t_const = "/../"; 825 while(*t && b < &full[MAXFILENAME])830 while(*t && b < end) 826 831 *b++ = *t_const++; 827 832 … … 829 834 */ 830 835 t = csym; 831 while(*t && b < &full[MAXFILENAME])836 while(*t && b < end) 832 837 *b++ = *t++; 833 838 834 839 /* see if we're too big 835 840 */ 836 if (*t || b == &full[MAXFILENAME])841 if (*t || b == end) 837 842 { 838 843 /* yes -- error
Note:
See TracChangeset
for help on using the changeset viewer.