Ticket #4443 (closed defect: fixed)
Opening Tiger with full file name broken since r22622
|Reported by:||gaige||Owned by:||warmerdam|
A change was made in r22622 to fix a problem with file names running off the end of the strncpy. However, it also changed the behavior in terminating the string (the previous line was designed to remove the last character of the extension, making room for appending the final character.
I would suggest patching:
szModule[sizeof(szModule)-1] = '\0';
to add back in:
szModule[strlen(szModule)-1] = '\0';
(getting the solution to both problems.
And then add a test for using the full name (including complete extension) in gdalautotest/ogr_tiger.py