Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2005 Pekka Riikonen
+ Copyright (C) 1997 - 2006 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
goto ok;
slen = strlen(string);
- d = silc_srealloc_ua(stack, len, dst->head,
+ d = silc_srealloc_ua(stack, len + 1, dst->head,
sizeof(*dst->head) * (slen + len + 1));
if (!d)
return -1;