Переглянути джерело

core: mod fixup spve_uint and spve_str fix

fixup_spve_uint() and fixup_spve_str() wrongly converted the
second parameter to a spve instead of an int or str.

Reported-by: Daniel-Constantin Mierla <[email protected]>
Andrei Pelinescu-Onciul 15 роки тому
батько
коміт
67df01ce1a
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      mod_fix.c

+ 3 - 2
mod_fix.c

@@ -232,7 +232,8 @@ FIXUP_F2FP_T(igp_pvar_pvar, 1, 3, 1, FPARAM_INT|FPARAM_PVS, FPARAM_PVS)
 	}
 
 
+/* format: name, minp, maxp, no_of_spve_params, type_for_rest_params */
 FIXUP_F_SPVE_T(spve_spve, 1, 2, 2, 0)
-FIXUP_F_SPVE_T(spve_uint, 1, 2, 2, FPARAM_INT)
-FIXUP_F_SPVE_T(spve_str, 1, 2, 2, FPARAM_STR)
+FIXUP_F_SPVE_T(spve_uint, 1, 2, 1, FPARAM_INT)
+FIXUP_F_SPVE_T(spve_str, 1, 2, 1, FPARAM_STR)
 FIXUP_F_SPVE_T(spve_null, 1, 1, 1, 0)