check the `std::min` line.  slen will never be bigger than STR_SIZE.