dynamic options vs TSV patch issue ref. #8

This commit is contained in:
bakkeby 2022-01-20 11:12:20 +01:00
parent 452174309f
commit e3a291ea43

View File

@ -33,6 +33,12 @@ readstream(FILE* stream)
*p = '\0';
if (!(items[i].text = strdup(buf)))
die("cannot strdup %u bytes:", strlen(buf) + 1);
#if TSV_PATCH
if ((p = strchr(buf, '\t')))
*p = '\0';
if (!(items[i].stext = strdup(buf)))
die("cannot strdup %u bytes:", strlen(buf) + 1);
#endif // TSV_PATCH
#if MULTI_SELECTION_PATCH
items[i].id = i;
#else