fix console.c to also add / (obs from Paulo Moura).

This commit is contained in:
Vitor Santos Costa 2009-10-23 23:54:24 +01:00
parent 9303efd6d6
commit 96da71b514

View File

@ -775,6 +775,11 @@ init_standard_system(int argc, char *argv[], YAP_init_args *iap)
#else
strcpy(boot_file, YAP_PL_SRCDIR);
#endif
#if HAVE_STRNCAT
strncat(boot_file, "/", 255);
#else
strcat(boot_file, "/");
#endif
#if HAVE_STRNCAT
strncat(boot_file, BootFile, 255);
#else
@ -829,6 +834,11 @@ exec_top_level(int BootMode, YAP_init_args *iap)
#else
strcpy(init_file, YAP_PL_SRCDIR);
#endif
#if HAVE_STRNCAT
strncat(init_file, "/", 255);
#else
strcat(init_file, "/");
#endif
#if HAVE_STRNCAT
strncat(init_file, InitFile, 255);
#else