wind: Do not perform arithmetic on a NULL pointer

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Joseph Sutton
2023-07-12 13:38:10 +12:00
committed by Nico Williams
parent ed798da1f2
commit db70a76074

View File

@@ -220,8 +220,8 @@ wind_ucs4utf8(const uint32_t *in, size_t in_len, char *out, size_t *out_len)
default:
break;
}
out += len;
}
out += len;
}
if (out) {
if (o + 1 >= *out_len)