Skip to content

Commit

Permalink
corrected IDA version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Dec committed Feb 18, 2014
1 parent d825332 commit 5463e0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ int8_t CheckIDAVersion(FILE * DifFile)
size_t len = 0;
char * line = NULL;
grepline(&line, &len, DifFile);
if(!strncmp(line,"This difference file has been created by IDA Pro",len-OS_HEXLINE) && 48 == len-OS_HEXLINE)
printf("STATS: %i\n", len-OS_HEXLINE);
if(!strncmp(line,"This difference file has been created by IDA Pro",len-OS_HEXLINE) && 33 == len-OS_HEXLINE)
{
result = 6; /*IDA 6*/
}
else
{
if(!strncmp(line, "This difference file is created by The Interactive Disassembler",len-OS_HEXLINE) && 63 == len-OS_HEXLINE)
if(!strncmp(line, "This difference file is created by The Interactive Disassembler",len-OS_HEXLINE) && 48 == len-OS_HEXLINE)
{
result = 5; /*IDA 5*/
}
Expand Down

0 comments on commit 5463e0f

Please sign in to comment.