Skip to content

Commit 8085ea2

Browse files
jkseppanQuLogic
andauthored
Fix calloc argument order
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 13894bd commit 8085ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extern/ttconv/pprdrv_tt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ F2DOT14 getF2DOT14(BYTE *s)
141141
char* F2DOT14value(F2DOT14 f)
142142
{
143143
const size_t maxlen = sizeof("-1.234567");
144-
char *value = (char*)calloc(sizeof(char), maxlen);
144+
char *value = (char*)calloc(maxlen, sizeof(char));
145145
if (value == NULL ||
146146
snprintf(value, maxlen, "%.6f", f.whole + (float)f.fraction/16384) < 0) {
147147
abort();

0 commit comments

Comments
 (0)