Branch: Tag:

2005-02-08

2005-02-08 14:18:04 by Martin Stjernholm <mast@lysator.liu.se>

Fixed an infinite loop that could cause the server to hang if a too
long name was specified for a new server configuration.

Rev: server/etc/modules/Roxen.pmod:1.192

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.191 2004/10/11 19:05:52 mast Exp $ + // $Id: Roxen.pmod,v 1.192 2005/02/08 14:18:04 mast Exp $      #include <roxen.h>   #include <config.h>
282:    return "x"+id[..19];       while( strlen(string_to_utf8( id )) > 20 ) -  id = id[..strlen(id)-1]; +  id = id[..strlen(id)-2];       return string_to_utf8( id );   }