summaryrefslogtreecommitdiff
path: root/src/sp_harden_rand.c
diff options
context:
space:
mode:
authorRemi Collet2018-09-03 15:38:51 +0200
committerjvoisin2018-09-03 13:38:51 +0000
commit499a81914597f156fe9a67e47e3baf82a0af4bde (patch)
tree23630733f4b892d362217cb5c8840d268d03c7c1 /src/sp_harden_rand.c
parentc947eb5378f894b154bdd33588f4bfb470075fe8 (diff)
Fix #241 segfault on 32-bit related to bad protype (#242)
This should close #241
Diffstat (limited to 'src/sp_harden_rand.c')
-rw-r--r--src/sp_harden_rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_harden_rand.c b/src/sp_harden_rand.c
index 7b4e958..7ab798e 100644
--- a/src/sp_harden_rand.c
+++ b/src/sp_harden_rand.c
@@ -52,7 +52,7 @@ static void random_int_wrapper(INTERNAL_FUNCTION_PARAMETERS) {
52} 52}
53 53
54PHP_FUNCTION(sp_rand) { 54PHP_FUNCTION(sp_rand) {
55 void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); 55 zif_handler orig_handler;
56 56
57 /* call the original `rand` function, 57 /* call the original `rand` function,
58 * since we might no be the only ones to hook it*/ 58 * since we might no be the only ones to hook it*/
@@ -64,7 +64,7 @@ PHP_FUNCTION(sp_rand) {
64} 64}
65 65
66PHP_FUNCTION(sp_mt_rand) { 66PHP_FUNCTION(sp_mt_rand) {
67 void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); 67 zif_handler orig_handler;
68 68
69 /* call the original `mt_rand` function, 69 /* call the original `mt_rand` function,
70 * since we might no be the only ones to hook it*/ 70 * since we might no be the only ones to hook it*/