Mercurial > hg > nginx
comparison src/core/ngx_inet.c @ 6481:40bea39731d7
Fixed format specifiers in ngx_sprintf().
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:34:00 +0300 |
parents | 2cd019520210 |
children | 7640d6c213e1 |
comparison
equal
deleted
inserted
replaced
6480:f01ab2dbcfdc | 6481:40bea39731d7 |
---|---|
346 *dst++ = ':'; | 346 *dst++ = ':'; |
347 i += (max - 1) * 2; | 347 i += (max - 1) * 2; |
348 continue; | 348 continue; |
349 } | 349 } |
350 | 350 |
351 dst = ngx_sprintf(dst, "%uxi", p[i] * 256 + p[i + 1]); | 351 dst = ngx_sprintf(dst, "%uxd", p[i] * 256 + p[i + 1]); |
352 | 352 |
353 if (i < 14) { | 353 if (i < 14) { |
354 *dst++ = ':'; | 354 *dst++ = ':'; |
355 } | 355 } |
356 } | 356 } |