mirror of
https://github.com/ostreedev/ostree.git
synced 2025-02-21 05:57:45 +03:00
core: Don't insert null byte in temporary file names
This commit is contained in:
parent
8ab2296a70
commit
ecbffd4915
@ -990,7 +990,7 @@ subst_xxxxxx (GRand *rand,
|
||||
|
||||
while (*xxxxxx == 'X')
|
||||
{
|
||||
int offset = g_random_int_range (0, sizeof (table));
|
||||
int offset = g_random_int_range (0, sizeof (table) - 1);
|
||||
*xxxxxx = (guint8)table[offset];
|
||||
xxxxxx++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user