Skip to content

Commit

Permalink
fix stack mashing using proper format
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Sep 20, 2019
1 parent 5bb071d commit a30311c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void data_to_custom_type(const char *string_value, zend_ulong type, zval *zv_res

zend_long _long_value;

sscanf(string_value, "%" PRIi64, &_long_value);
sscanf(string_value, ZEND_LONG_FMT, &_long_value);

if (Z_TYPE_P(zv_result_t) == IS_ARRAY) {
add_next_index_long(zv_result_t, _long_value);
Expand Down Expand Up @@ -268,4 +268,4 @@ void load_sheet_all_data(xlsxioreadersheet sheet_t, zval *zv_type_t, zval *zv_re
add_next_index_zval(zv_result_t, &_zv_tmp_row);
}
}
/* }}} */
/* }}} */

0 comments on commit a30311c

Please sign in to comment.