dictionary: Properly size string buffer in make_hinted_name().
commit733154a78524daecf1542c4f6fba96474ac3426f
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Jun 2023 14:40:47 +0000 (4 07:40 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 4 Jun 2023 14:42:18 +0000 (4 07:42 -0700)
tree38bd4e9e1a1268e39c84ef45f6cb53c779f28830
parent7d56af2f1816aea9aa7b882dc4f238c5acd29255
dictionary: Properly size string buffer in make_hinted_name().

This causes a test failure on 32-bit platforms, where
INT_BUFSIZE_BOUND(unsigned long) is smaller than F26ADIC_STRLEN_MAX + 1.

Fixes: 2ba8dc2955f8 ("spreadsheet-reader: Merge duplicate code with libpspp/str.h.")

Thanks to Friedrich Beckmann for reporting the problem.
src/data/dictionary.c