X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcontext.c;h=1a2816f5491aaa555b7e858862fb3066e27e9bdb;hb=100b6a90d5ea460fc62e648311ebf3fad965c139;hp=f5efd5c1c5c2781db643f91e5cd27fa024c93267;hpb=cb5275786332fa50897200781d3100449b5f71dd;p=citadel.git diff --git a/citadel/context.c b/citadel/context.c index f5efd5c1c..1a2816f54 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -1,17 +1,12 @@ -/* - * Citadel context management stuff. - * Here's where we (hopefully) have all the code that manipulates contexts. - * - * Copyright (c) 1987-2019 by the citadel.org team - * - * This program is open source software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ +// +// Citadel context management stuff. +// Here's where we (hopefully) have all the code that manipulates contexts. +// +// Copyright (c) 1987-2020 by the citadel.org team +// +// This program is open source software. Use, duplication, or disclosure +// is subject to the terms of the GNU General Public License, version 3. +// The program is distributed without any warranty, expressed or implied. #include "ctdl_module.h" #include "serv_extensions.h" @@ -568,7 +563,7 @@ void CtdlFillSystemContext(CitContext *context, char *name) context->cs_pid = 0; strcpy (sysname, "SYS_"); strcat (sysname, name); - len = cutuserkey(sysname); + len = strlen(sysname); memcpy(context->curr_user, sysname, len + 1); context->client_socket = (-1); context->state = CON_SYS;