Minor modifications to make it compile on linux
This commit is contained in:
parent
93b3e2e5aa
commit
ade2265ed2
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
|||
SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp Statements.cpp test.cpp tokenize.cpp
|
||||
SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp Statements.cpp tokenize.cpp
|
||||
OBJS=$(SRCS:%.cpp=%.o)
|
||||
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ static void Define(const char Name[], const char Value[])
|
|||
char str[50];
|
||||
unsigned long value = strtoul(Value+2, NULL, 16);
|
||||
free(strValue);
|
||||
sprintf(str, "%d", value);
|
||||
sprintf(str, "%lu", value);
|
||||
strValue = strdup(str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue