use buffer_string_set_length() to truncate strings

personal/stbuehler/mod-csrf-old
Glenn Strauss 7 years ago
parent df8032a7c8
commit f3e36ccdbb

@ -248,7 +248,7 @@ int http_request_host_normalize(buffer *b) {
return -1;
}
} /*(else ignore stray colon at string end)*/
buffer_commit(b, (size_t)(colon - p)); /*(remove port str)*/
buffer_string_set_length(b, (size_t)(colon - p)); /*(remove port str)*/
}
if (light_isdigit(*p)) {

Loading…
Cancel
Save