diff options
author | Michael Catanzaro <mcatanzaro@redhat.com> | 2023-08-23 17:38:49 +0000 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@redhat.com> | 2023-08-23 17:38:49 +0000 |
commit | 5216e8c7d5bbc2ac16a44be2db3b9348ec85dff8 (patch) | |
tree | ad8e820b84376790db3ee15a133c970f706fee10 | |
parent | 8754a57d95d5140fe8a7fef74848240baa7dea54 (diff) | |
parent | 285db475ecaa4d2cc39ce326b4c63aacb87ca6ad (diff) | |
download | glib-5216e8c7d5bbc2ac16a44be2db3b9348ec85dff8.tar.gz |
Merge branch 'fix-tmpfile' into 'main'
glib/gfileutils.c: use 64 bits for value in get_tmp_file()
See merge request GNOME/glib!3547
-rw-r--r-- | glib/gfileutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/gfileutils.c b/glib/gfileutils.c index 9646c696e..bd3cc179a 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -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]; |