# HG changeset patch # User Matti Hamalainen # Date 1456141874 -7200 # Node ID e214637b0645e001633d9be6cae90a928189e414 # Parent 5cbdf215e42bd4a0207050458f2040e42f22c3d6 Add check for (currently unsupported) length modifiers. diff -r 5cbdf215e42b -r e214637b0645 th_string.c --- a/th_string.c Mon Feb 22 13:50:44 2016 +0200 +++ b/th_string.c Mon Feb 22 13:51:14 2016 +0200 @@ -293,6 +293,17 @@ while (th_isdigit(*fmt)) f_prec = f_prec * 10 + (*fmt++ - '0'); } + // Check for length modifiers (NOT SUPPORTED CURRENTLY) + switch (*fmt) + { + case 'l': + case 'L': + case 'h': + case 'j': + case 'z': + case 't': + return -202; + } switch (*fmt) {