MINOR: logformat %st is signed

replace ultoa by ltoa for HTTP status code (can be -1)
This commit is contained in:
William Lallemand 2012-03-22 11:32:29 +01:00 committed by Willy Tarreau
parent afdb6e57f7
commit 7f25debbd2

View File

@ -913,7 +913,7 @@ void sess_log(struct session *s)
break;
case LOG_STATUS: // %st
tmplog = ultoa_o(txn->status, tmplog, MAX_SYSLOG_LEN - (tmplog - logline));
tmplog = ltoa_o(txn->status, tmplog, MAX_SYSLOG_LEN - (tmplog - logline));
if (!tmplog)
goto out;
last_isspace = 0;