Skip to content

Commit

Permalink
Use uint8_t* with U8_APPEND macros
Browse files Browse the repository at this point in the history
This fixes the build on CentOS Stream 8.
  • Loading branch information
DemiMarie committed Mar 10, 2023
1 parent b7de85e commit b6e9fe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qrexec-lib/validator-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

static void character_must_be_allowed(uint32_t c)
{
char buf[5];
uint8_t buf[5];
int32_t off = 0;
UBool e = false;
U8_APPEND(buf, off, 4, c, e);
Expand All @@ -25,7 +25,7 @@ static void character_must_be_allowed(uint32_t c)

static void character_must_be_forbidden(uint32_t c)
{
char buf[5];
uint8_t buf[5];
int32_t off = 0;
UBool e = false;
U8_APPEND(buf, off, 4, c, e);
Expand Down Expand Up @@ -103,7 +103,7 @@ int main(int argc, char **argv)
assert(!qubes_pure_validate_file_name(u8"\U00012000"));
// Surrogates are forbidden
for (uint32_t i = 0xD800; i <= 0xDFFF; ++i) {
char buf[4] = { 0, 0, 0, 0 };
uint8_t buf[4] = { 0, 0, 0, 0 };
int32_t off = 0;
U8_APPEND_UNSAFE(buf, off, i);
assert(off == 3);
Expand Down

0 comments on commit b6e9fe7

Please sign in to comment.