Skip to content

Commit

Permalink
Increase size of error message buffer to avoid warning about potentia…
Browse files Browse the repository at this point in the history
…l truncation with some compilers
  • Loading branch information
rouault committed Apr 25, 2024
1 parent 2b0c097 commit 6fe5012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbnsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ static bool SBNSearchDiskInternal(SearchStruct *psSearch, int nDepth,
{
free(psNode->pabyShapeDesc);
psNode->pabyShapeDesc = SHPLIB_NULLPTR;
char szMessage[128];
char szMessage[192];
snprintf(
szMessage, sizeof(szMessage),
"Inconsistent shape count for bin idx=%d of node %d. "
Expand Down

0 comments on commit 6fe5012

Please sign in to comment.