Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/mod_maxminddb.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@ geoip2_env_set (request_st * const r, array * const env,
break;
case MMDB_DATA_TYPE_DOUBLE:
vlen = snprintf(buf, sizeof(buf), "%.5f", data->double_value);
if (vlen >= sizeof(buf)) vlen = sizeof(buf) - 1;
break;
case MMDB_DATA_TYPE_FLOAT:
vlen = snprintf(buf, sizeof(buf), "%.5f", data->float_value);
if (vlen >= sizeof(buf)) vlen = sizeof(buf) - 1;
break;
case MMDB_DATA_TYPE_INT32:
vlen = li_itostrn(buf, sizeof(buf), data->int32);
Expand Down