fix console.c to also add / (obs from Paulo Moura).
This commit is contained in:
parent
9303efd6d6
commit
96da71b514
@ -775,6 +775,11 @@ init_standard_system(int argc, char *argv[], YAP_init_args *iap)
|
|||||||
#else
|
#else
|
||||||
strcpy(boot_file, YAP_PL_SRCDIR);
|
strcpy(boot_file, YAP_PL_SRCDIR);
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_STRNCAT
|
||||||
|
strncat(boot_file, "/", 255);
|
||||||
|
#else
|
||||||
|
strcat(boot_file, "/");
|
||||||
|
#endif
|
||||||
#if HAVE_STRNCAT
|
#if HAVE_STRNCAT
|
||||||
strncat(boot_file, BootFile, 255);
|
strncat(boot_file, BootFile, 255);
|
||||||
#else
|
#else
|
||||||
@ -829,6 +834,11 @@ exec_top_level(int BootMode, YAP_init_args *iap)
|
|||||||
#else
|
#else
|
||||||
strcpy(init_file, YAP_PL_SRCDIR);
|
strcpy(init_file, YAP_PL_SRCDIR);
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_STRNCAT
|
||||||
|
strncat(init_file, "/", 255);
|
||||||
|
#else
|
||||||
|
strcat(init_file, "/");
|
||||||
|
#endif
|
||||||
#if HAVE_STRNCAT
|
#if HAVE_STRNCAT
|
||||||
strncat(init_file, InitFile, 255);
|
strncat(init_file, InitFile, 255);
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user