Commit cede4dd4 authored by Per Cederqvist's avatar Per Cederqvist

Fixed trivial bug in create_oldstyle_username.

parent b743e8a8
/*
* $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.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* 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>
......@@ -57,13 +57,13 @@ static void
create_oldstyle_username(String *result,
Connection *connection)
{
if ( s_strcpy(result, cptr->username) != OK )
if ( s_strcpy(result, connection->username) != OK )
restart_kom("create_oldstyle_username(): strcpy\n");
if ( s_strcat(result, s_fcrea_str((const unsigned char *)"@")) != OK )
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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment