Ignore:
Timestamp:
Apr 10, 2013, 7:55:42 PM (7 years ago)
Author:
nit
Message:

[titan] fix tithek

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r20932 r20933  
    407407                                char* tmp = NULL;
    408408                                tmp = readbintomem(node->filename, 3);
    409                                 if(ostrcmp("GIF", tmp) == 0) defpic = 1; //gif
    410                                 if(ostrcmp("<", tmp) == 0) defpic = 1; //html
     409                                if(ostrncmp("GIF", tmp, 3) == 0) defpic = 1; //gif
     410                                if(ostrncmp("<", tmp, 1) == 0) defpic = 1; //html
    411411                                free(tmp); tmp = NULL;
    412412                        }
Note: See TracChangeset for help on using the changeset viewer.