mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-23 14:00:40 +02:00
Merge branch 'backport-3547-fileutils-y2038-glib-2-76' into 'glib-2-76'
Backport !3547 “glib/gfileutils.c: use 64 bits for value in get_tmp_file()” to glib-2-76 See merge request GNOME/glib!3549
This commit is contained in:
commit
488445d312
@ -1500,7 +1500,7 @@ get_tmp_file (gchar *tmpl,
|
||||
static const char letters[] =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||
static const int NLETTERS = sizeof (letters) - 1;
|
||||
glong value;
|
||||
gint64 value;
|
||||
gint64 now_us;
|
||||
static int counter = 0;
|
||||
|
||||
@ -1521,7 +1521,7 @@ get_tmp_file (gchar *tmpl,
|
||||
|
||||
for (count = 0; count < 100; value += 7777, ++count)
|
||||
{
|
||||
glong v = value;
|
||||
gint64 v = value;
|
||||
|
||||
/* Fill in the random bits. */
|
||||
XXXXXX[0] = letters[v % NLETTERS];
|
||||
|
Loading…
x
Reference in New Issue
Block a user