Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mapshape: remove useless null terminator
It's pointless to null-terminate the buffer if strcpy() overwrites it.
  • Loading branch information
MaxKellermann authored and rouault committed May 4, 2021
1 parent 7c05724 commit 9755395
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mapshape.c
Expand Up @@ -1730,7 +1730,6 @@ int msShapefileOpen(shapefileObj *shpfile, const char *mode, const char *filenam

bufferSize = strlen(filename)+5;
dbfFilename = (char *)msSmallMalloc(bufferSize);
dbfFilename[0] = '\0';
strcpy(dbfFilename, filename);

/* clean off any extention the filename might have */
Expand Down

0 comments on commit 9755395

Please sign in to comment.