Mercurial > hg > xemacs-beta
diff src/buffer.c @ 333:4f79e16b1112 r21-0-64
Import from CVS: tag r21-0-64
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:49:50 +0200 |
parents | 03446687b7cc |
children | 8e84bee8ddd0 |
line wrap: on
line diff
--- a/src/buffer.c Mon Aug 13 10:49:08 2007 +0200 +++ b/src/buffer.c Mon Aug 13 10:49:50 2007 +0200 @@ -2758,11 +2758,11 @@ GET_C_CHARPTR_INT_FILENAME_DATA_ALLOCA (pwd, pwd_internal); return (IS_DIRECTORY_SEP (*pwd_internal) - && stat (pwd_internal, &pwdstat) == 0 - && stat ("." , &dotstat) == 0 + && stat ((char *) pwd_internal, &pwdstat) == 0 + && stat (".", &dotstat) == 0 && dotstat.st_ino == pwdstat.st_ino && dotstat.st_dev == pwdstat.st_dev - && (int) strlen (pwd_internal) < MAXPATHLEN); + && (int) strlen ((char *) pwd_internal) < MAXPATHLEN); } void @@ -2794,7 +2794,7 @@ initial_directory[len + 1] = '\0'; } } - + /* XEmacs change: store buffer's default directory using prefered (i.e. as defined at compile-time) directory separator. --marcpa */