Fix buffer overrun when invalid value passed to numPbcDimensions
authorAndrey Alekseenko <al42and@gmail.com>
Thu, 22 Apr 2021 16:38:05 +0000 (18:38 +0200)
committerAndrey Alekseenko <al42and@gmail.com>
Thu, 22 Apr 2021 16:38:05 +0000 (18:38 +0200)
commitefadaddb65666131034907b0dd252f04d78eaeb5
treee466cde1b924d9385065f43c23f00bac07b5de1a
parent0ba19f8de5207812550cd60cffe2ab1335cb1aa0
Fix buffer overrun when invalid value passed to numPbcDimensions

The code was supposed to print a user-friendly string when an invalid
parameter value was passed, but user-friendly strings are defined only
for valid values.

Caught by gcc-10 diagnostics.
src/gromacs/pbcutil/pbc.cpp