--- libaitcfg/src/Attic/tools.c 2009/09/09 09:07:31 1.2 +++ libaitcfg/src/Attic/tools.c 2010/03/22 14:53:49 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tools.c,v 1.2 2009/09/09 09:07:31 misho Exp $ +* $Id: tools.c,v 1.3 2010/03/22 14:53:49 misho Exp $ * *************************************************************************/ #include "global.h" @@ -23,7 +23,7 @@ inline int ltrim(u_char *psLine) if (!pos) return 0; - memmove(psLine, psLine + pos, strlen((char*) psLine)); + memmove(psLine, psLine + pos, strlen((char*) psLine) - pos + 1); return pos; }