fix oob write in genversion
This commit is contained in:
parent
476161cf2c
commit
301c6dfc93
1 changed files with 1 additions and 3 deletions
|
@ -74,9 +74,7 @@ int main(int argc, char * argv[]) {
|
||||||
free(gitrevfile);
|
free(gitrevfile);
|
||||||
if (file) {
|
if (file) {
|
||||||
git_rev = (char*)calloc(sizeof(char), 1024);
|
git_rev = (char*)calloc(sizeof(char), 1024);
|
||||||
if (fscanf(file, "%s", git_rev) != 1) {
|
fscanf(file, "%s", git_rev);
|
||||||
new_ver[4] = -1;
|
|
||||||
}
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue