@pikuma Believe it or not, I had one of those today, too. I was writing some C glue code and needed a +1 to the buffer size for the zero terminator and then there was a regular off-by-one error stacked on top of that. Off-by-two is not that uncommon in C code involving zero-terminated strings.
Add comment