mask_to_names(): Handle if ftell() is not successful

This commit is contained in:
2025-09-30 18:58:51 +02:00
parent 9a5e96f058
commit 53f8aa343b

View File

@@ -311,6 +311,11 @@ const char *mask_to_names(int mask)
{ {
ret[pos-1] = '\0'; ret[pos-1] = '\0';
} }
else
{
logerror("Failed to convert mask to string: %s", strerror(errno));
exit(EXIT_FAILURE);
}
return xstrdup(ret); return xstrdup(ret);
} }