pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Fix coverity 1255958
2016-12-12, Gary Kramlich
8fe1c3be007c
Parents
2c48ea85e14e
Children
324fe1dc33ac
Fix coverity 1255958
1 files changed, 1 insertions(+), 1 deletions(-)
+1
-1
libpurple/protocols/oscar/family_icbm.c
--- a/libpurple/protocols/oscar/family_icbm.c Mon Dec 12 18:23:57 2016 -0600
+++ b/libpurple/protocols/oscar/family_icbm.c Mon Dec 12 18:28:46 2016 -0600
@@ -100,7 +100,7 @@
/* Should be like "21CBF95" and null terminated */
for (i = 0; i < 7; i++)
- cookie[i] = 0x30 + ((guchar)rand() % 10);
+ cookie[i] = 0x30 + ((guchar)g_random_int() % 10);
cookie[7] = '\0';
}