Skip to content
Snippets Groups Projects
Commit cede4dd4 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed trivial bug in create_oldstyle_username.

parent b743e8a8
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: session.c,v 0.11 1992/04/14 15:28:10 ceder Exp $ * $Id: session.c,v 0.12 1992/04/14 17:18:33 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Session control and miscellaneous. * Session control and miscellaneous.
*/ */
static char *rcsid = "$Id: session.c,v 0.11 1992/04/14 15:28:10 ceder Exp $"; static char *rcsid = "$Id: session.c,v 0.12 1992/04/14 17:18:33 ceder Exp $";
#include <time.h> #include <time.h>
...@@ -57,13 +57,13 @@ static void ...@@ -57,13 +57,13 @@ static void
create_oldstyle_username(String *result, create_oldstyle_username(String *result,
Connection *connection) Connection *connection)
{ {
if ( s_strcpy(result, cptr->username) != OK ) if ( s_strcpy(result, connection->username) != OK )
restart_kom("create_oldstyle_username(): strcpy\n"); restart_kom("create_oldstyle_username(): strcpy\n");
if ( s_strcat(result, s_fcrea_str((const unsigned char *)"@")) != OK ) if ( s_strcat(result, s_fcrea_str((const unsigned char *)"@")) != OK )
restart_kom("create_oldstyle_username: s_strcat\n"); restart_kom("create_oldstyle_username: s_strcat\n");
if ( s_strcat(result, cptr->hostname) != OK ) if ( s_strcat(result, connection->hostname) != OK )
restart_kom("prot_a_parse_packet: s_strcat II\n"); restart_kom("prot_a_parse_packet: s_strcat II\n");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment