version 1.1.1.1, 2008/08/28 13:18:30
|
version 1.1.1.1.2.2, 2008/10/13 17:02:15
|
Line 1
|
Line 1
|
|
/************************************************************************* |
|
* (C) 2008 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com> |
|
* by Michael Pounov <misho@openbsd-bg.org> |
|
* |
|
* $Author$ |
|
* $Id$ |
|
* |
|
*************************************************************************/ |
#include "global.h" |
#include "global.h" |
#include "aitsess.h" |
#include "aitsess.h" |
|
|
Line 42 int sess_GetValue(tagSess * __restrict s, const char *
|
Line 50 int sess_GetValue(tagSess * __restrict s, const char *
|
val = strtok_r(NULL, "=\r\n", &a_brk); |
val = strtok_r(NULL, "=\r\n", &a_brk); |
if (val && strlen(val)) { |
if (val && strlen(val)) { |
if (psVal) |
if (psVal) |
strncpy(psVal, val, *pnLen); | strlcpy(psVal, val, *pnLen); |
if (pnLen) |
if (pnLen) |
*pnLen = strlen(val); |
*pnLen = strlen(val); |
} else |
} else |