diff options
Diffstat (limited to 'src/sp_session.c')
| -rw-r--r-- | src/sp_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_session.c b/src/sp_session.c index 568271b..9327549 100644 --- a/src/sp_session.c +++ b/src/sp_session.c | |||
| @@ -27,10 +27,10 @@ static void check_sid_length(const zend_string *sid) { | |||
| 27 | 27 | ||
| 28 | if (sid) { | 28 | if (sid) { |
| 29 | if (cfg->sid_min_length && ZSTR_LEN(sid) < cfg->sid_min_length) { | 29 | if (cfg->sid_min_length && ZSTR_LEN(sid) < cfg->sid_min_length) { |
| 30 | sp_log_auto("session", cfg->simulation, "Session ID is too short (sid=%zu min=%zu)", ZSTR_LEN(sid), (size_t)cfg->sid_min_length); | 30 | sp_log_auto("session", cfg->simulation, "Session ID is too short (sid=%zu min=%lu)", ZSTR_LEN(sid), cfg->sid_min_length); |
| 31 | } | 31 | } |
| 32 | if (cfg->sid_max_length && ZSTR_LEN(sid) > cfg->sid_max_length) { | 32 | if (cfg->sid_max_length && ZSTR_LEN(sid) > cfg->sid_max_length) { |
| 33 | sp_log_auto("session", cfg->simulation, "Session ID is too long (sid=%zu max=%zu)", ZSTR_LEN(sid), (size_t)cfg->sid_max_length); | 33 | sp_log_auto("session", cfg->simulation, "Session ID is too long (sid=%zu max=%lu)", ZSTR_LEN(sid), cfg->sid_max_length); |
| 34 | } | 34 | } |
| 35 | } | 35 | } |
| 36 | } | 36 | } |
