diff --git a/reactos/lib/msvcrt/stdlib/makepath.c b/reactos/lib/msvcrt/stdlib/makepath.c index 4b730006218..4e09c6cc2df 100644 --- a/reactos/lib/msvcrt/stdlib/makepath.c +++ b/reactos/lib/msvcrt/stdlib/makepath.c @@ -1,4 +1,4 @@ -/* $Id: makepath.c,v 1.11 2003/07/11 21:58:09 royce Exp $ +/* $Id: makepath.c,v 1.12 2003/08/08 00:46:20 hbirr Exp $ */ #include #include @@ -11,8 +11,9 @@ void _makepath(char* path, const char* drive, const char* dir, const char* fname int dir_len; if ((drive != NULL) && (*drive)) { - strcpy(path, drive); - strcat(path, ":"); + path[0] = *drive; + path[1] = ':'; + path[2] = 0; } else { (*path)=0; } diff --git a/reactos/lib/msvcrt/stdlib/wmakpath.c b/reactos/lib/msvcrt/stdlib/wmakpath.c index 0548a9ce1f4..347427423c5 100644 --- a/reactos/lib/msvcrt/stdlib/wmakpath.c +++ b/reactos/lib/msvcrt/stdlib/wmakpath.c @@ -1,4 +1,4 @@ -/* $Id: wmakpath.c,v 1.2 2003/07/11 21:58:09 royce Exp $ +/* $Id: wmakpath.c,v 1.3 2003/08/08 00:46:20 hbirr Exp $ */ #include #include @@ -12,8 +12,9 @@ void _wmakepath(wchar_t* path, const wchar_t* drive, const wchar_t* dir, const w int dir_len; if ((drive != NULL) && (*drive)) { - wcscpy(path, drive); - wcscat(path, L":"); + path[0] = *drive; + path[1] = L':'; + path[2] = 0; } else { (*path) = 0; }