#R667: a bug in character naming
- strip out '?' and several others. - this means that people specifying character names fred? and fred* will collide. Oh well.
This commit is contained in:
+2
-1
@@ -287,12 +287,13 @@ char *argv[];
|
|||||||
/* Obtain the name of the logged on user and incorporate
|
/* Obtain the name of the logged on user and incorporate
|
||||||
* it into the name. */
|
* it into the name. */
|
||||||
Sprintf(lock, "%s-%s",get_username(0),plname);
|
Sprintf(lock, "%s-%s",get_username(0),plname);
|
||||||
|
regularize(lock);
|
||||||
# else
|
# else
|
||||||
Strcpy(lock,plname);
|
Strcpy(lock,plname);
|
||||||
regularize(lock);
|
regularize(lock);
|
||||||
# endif
|
# endif
|
||||||
getlock();
|
getlock();
|
||||||
#else /* PC_LOCKING */
|
#else /* What follows is !PC_LOCKING */
|
||||||
# ifdef AMIGA /* We'll put the bones & levels in the user specified directory -jhsa */
|
# ifdef AMIGA /* We'll put the bones & levels in the user specified directory -jhsa */
|
||||||
Strcat(lock,plname);
|
Strcat(lock,plname);
|
||||||
Strcat(lock,".99");
|
Strcat(lock,".99");
|
||||||
|
|||||||
+2
-5
@@ -1,4 +1,4 @@
|
|||||||
/* SCCS Id: @(#)winnt.c 3.4 1997/04/12 */
|
/* SCCS Id: @(#)winnt.c 3.4 2002/03/23 */
|
||||||
/* Copyright (c) NetHack PC Development Team 1993, 1994 */
|
/* Copyright (c) NetHack PC Development Team 1993, 1994 */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -151,10 +151,7 @@ def_kbhit()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Windows NT version >= 3.5x and above supports long file names,
|
* Strip out troublesome file system characters.
|
||||||
* even on FAT volumes (VFAT), so no need for nt_regularize.
|
|
||||||
* Windows NT 3.1 could not do long file names except on NTFS,
|
|
||||||
* so nt_regularize was required.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user