If I swap the order of the two fun() calls in main(), or reduce the length difference between the passed strings to one character, I do not get the error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get this error output when when running following minimal test program through cppcheck (2.9). I think this is incorrect.
test.c:
If I swap the order of the two fun() calls in main(), or reduce the length difference between the passed strings to one character, I do not get the error.
Thanks for reporting. It looks like this has been fixed in head.