MPSolve
MPSolve copied to clipboard
monomial/monomial-parser.c:276: off by one error ?
Static analyser cppcheck says:
monomial/monomial-parser.c:276:18: error: Width 3 given in format string (no. 1) is larger than destination buffer 'data_type[3]', use %2s to prevent overflowing it. [invalidScanfFormatWidth]
Source code is
if (!token || !sscanf (token, "%3s", data_type))