Skip to content

Commit 71455c2

Browse files
committed
Host_Map_f: replace Q_strrchr and Q_strcmp with libc calls
1 parent 155dc34 commit 71455c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Quake/host_cmd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,9 @@ static void Host_Map_f (void)
858858
svs.serverflags = 0; // haven't completed an episode yet
859859
q_strlcpy (name, Cmd_Argv(1), sizeof(name));
860860
// remove (any) trailing ".bsp" from mapname -- S.A.
861-
p = Q_strrchr(name, '.');
861+
p = strrchr(name, '.');
862862
if (p != NULL)
863-
if (Q_strcmp(p, ".bsp") == 0)
863+
if (strcmp(p, ".bsp") == 0)
864864
*p = '\0';
865865
SV_SpawnServer (name);
866866
if (!sv.active)

0 commit comments

Comments
 (0)