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

This commit is contained in:
2025-09-30 18:58:51 +02:00
父節點 9a5e96f058
當前提交 53f8aa343b

查看文件

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