static void
cache_invalidate (PsppireDelimitedText *tf)
{
- memset (tf->cache_starts, 0, 512);
+ memset (tf->cache_starts, 0, sizeof tf->cache_starts);
if (tf->const_cache.string)
{
ss_dealloc (&tf->const_cache);
return;
}
- memset (file->cache_starts, 0, 512);
+ memset (file->cache_starts, 0, sizeof file->cache_starts);
/* Cache miss */
if (file->const_cache.string)
{
text_file->const_cache.string = NULL;
text_file->const_cache.length = 0;
text_file->cache_row = -1;
- memset (text_file->cache_starts, 0, 512);
+ memset (text_file->cache_starts, 0, sizeof text_file->cache_starts);
text_file->max_delimiters = 0;