comparison src/lread.c @ 664:6e99cc8c6ca5

[xemacs-hg @ 2001-09-18 05:04:26 by ben] fileio.c: Fix various C++ compile errors in Andy's recent code. callint.c, editfns.c, emacs.c, lread.c, redisplay-x.c: Fix sign-compare warnings. scrollbar-msw.c: Fix crash under MS Windows. See comment around line 223 for explanation. font-lock.el: fix problem when you insert a comment on the line before a line of code: if we use the following char, then when you hit backspace, the following line of code turns the comment color. configure.in: Don't use -Wshadow when compiling with g++ or you get buried in silly warnings. This patch was already applied but somehow got unapplied. Stephen?
author ben
date Tue, 18 Sep 2001 05:06:57 +0000
parents 190b164ddcac
children fdefd0186b75
comparison
equal deleted inserted replaced
663:ebdebdbf3f84 664:6e99cc8c6ca5
980 const char *nsuffix = (const char *) XSTRING_DATA (suffixes); 980 const char *nsuffix = (const char *) XSTRING_DATA (suffixes);
981 981
982 while (1) 982 while (1)
983 { 983 {
984 char *esuffix = (char *) strchr (nsuffix, ':'); 984 char *esuffix = (char *) strchr (nsuffix, ':');
985 int lsuffix = esuffix ? esuffix - nsuffix : strlen (nsuffix); 985 int lsuffix = esuffix ? esuffix - nsuffix : (int) strlen (nsuffix);
986 986
987 /* Concatenate path element/specified name with the suffix. */ 987 /* Concatenate path element/specified name with the suffix. */
988 strncpy (fn + fn_len, nsuffix, lsuffix); 988 strncpy (fn + fn_len, nsuffix, lsuffix);
989 fn[fn_len + lsuffix] = 0; 989 fn[fn_len + lsuffix] = 0;
990 990