Commit 5e09ded4 authored by David Lawrence's avatar David Lawrence
Browse files

cast assignment of confdata->ndots to lwres_uint8_t (its type). it was already

being range checked.
parent 695c2f9b
......@@ -436,7 +436,7 @@ lwres_conf_parseoption(lwres_context_t *ctx, FILE *fp) {
return (LWRES_R_FAILURE);
if (ndots < 0 || ndots > 0xff) /* Out of range. */
return (LWRES_R_FAILURE);
confdata->ndots = ndots;
confdata->ndots = (lwres_uint8_t)ndots;
}
if (delim == EOF || delim == '\n')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment