ifix warning

This commit is contained in:
Vítor Santos Costa II 2010-03-22 16:57:19 +00:00
parent a9b979144c
commit e03b948b0a

View File

@ -1840,9 +1840,9 @@ TrueFileName (char *source, char *root, char *result, int in_lib)
if (!Yap_getcwd(ares1, YAP_FILENAME_MAX))
return FALSE;
#if _MSC_VER || defined(__MINGW32__)
strncat (ares1, "\\", YAP_FILENAME_MAX);
strncat (ares1, "\\", YAP_FILENAME_MAX-1);
#else
strncat (ares1, "/", YAP_FILENAME_MAX);
strncat (ares1, "/", YAP_FILENAME_MAX-1);
#endif
if (root) {
if (!dir_separator(root[0]) && !volume_header(root)) {