&& (strcmp(ent->d_name, ".") != 0))
{
// Check to see if this is a special directory with a manifest
- char buf2[0x10000];
+ char buf2[0x10000 + 13];
sprintf(buf2, "%s/manifest.txt", buf);
FILE * fp = fopen(buf2, "r");
{
const char * ext = strrchr(ent->d_name, '.');
- if ((ext != NULL) && (strcasecmp(ext, ".2mg") == 0))
+ if ((ext != NULL)
+ && ((strcasecmp(ext, ".2mg") == 0)
+ || (strcasecmp(ext, ".hdv") == 0)))
{
FileStruct fs;
fs.image = ent->d_name;