--- sutil/ncplogin.c.orig 2005-01-16 23:16:20.311673048 +0100 +++ sutil/ncplogin.c 2005-01-16 23:21:47.645910680 +0100 @@ -166,10 +166,11 @@ int e; /* we DID check in main that -V has been specified !*/ - strcpy(tmpNWPath,info->remote_path); + memset(tmpNWPath,0,sizeof(tmpNWPath)); + strncpy(tmpNWPath,sizeof(tmpNWPath)-1,info->remote_path); if (info->root_path) { - strcat(tmpNWPath,"/"); - strcat(tmpNWPath,info->root_path); + strncat(tmpNWPath,"/",sizeof(tmpNWPath)-strlen(tmpNWPath)-1); + strncat(tmpNWPath,info->root_path,sizeof(tmpNWPath)-strlen(tmpNWPath)-1); } /* I keep forgeting typing it in uppercase so let's do it here */ str_upper(tmpNWPath);