libxlsxwriter/src/custom.c in fast_excel-0.2.3 vs libxlsxwriter/src/custom.c in fast_excel-0.2.5

- old
+ new

@@ -1,11 +1,11 @@ /***************************************************************************** * custom - A library for creating Excel custom property files. * * Used in conjunction with the libxlsxwriter library. * - * Copyright 2014-2017, John McNamara, jmcnamara@cpan.org. See LICENSE.txt. + * Copyright 2014-2018, John McNamara, jmcnamara@cpan.org. See LICENSE.txt. * */ #include "xlsxwriter/xmlwriter.h" #include "xlsxwriter/custom.h" @@ -79,10 +79,10 @@ STATIC void _chart_write_vt_r_8(lxw_custom *self, double value) { char data[LXW_ATTR_32]; - lxw_snprintf(data, LXW_ATTR_32, "%.16g", value); + lxw_sprintf_dbl(data, value); lxw_xml_data_element(self->file, "vt:r8", data, NULL); } /*