From c9babdd03ea2ba00b69b08d051f34fc502f48aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 31 Jan 2016 10:58:24 +0000 Subject: [PATCH] win32 --- os/sysbits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/sysbits.c b/os/sysbits.c index 213040755..bb7cf44a6 100644 --- a/os/sysbits.c +++ b/os/sysbits.c @@ -502,7 +502,7 @@ BaseName(const char *X) { } -const har * +const char * DirName(const char *X) { char dir[YAP_FILENAME_MAX]; char drive[YAP_FILENAME_MAX]; @@ -675,7 +675,7 @@ prolog_expanded_file_system_path( USES_REGS1 ) const char *rc = myrealpath(out, LOCAL_FileNameBuf2 ); return Yap_unify(MkAtomTerm(Yap_LookupAtom(rc)), ARG4); } else { - char *pt =stpncpy( LOCAL_FileNameBuf2, p0, YAP_FILENAME_MAX ); + char *pt =strncpy( LOCAL_FileNameBuf2, p0, YAP_FILENAME_MAX ); printf("%s\n", LOCAL_FileNameBuf2); if ( !dir_separator( pt[-1] )) { #if ATARI || _MSC_VER || defined(__MINGW32__)