Skip to content

Commit

Permalink
Merge pull request #173 from remicollet/issue-172
Browse files Browse the repository at this point in the history
fix stack mashing using proper format
  • Loading branch information
viest committed Sep 20, 2019
2 parents 5bb071d + a30311c commit 6258018
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 6258018

Please sign in to comment.