Skip to content

Commit

Permalink
[core] CodeQL: operation requires 22 bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Jan 26, 2023
1 parent 0c583f8 commit 64dedef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ inline std::string SrtVersionString(int version)
int minor = (version/0x100)%0x100;
int major = version/0x10000;

char buf[20];
char buf[22];
sprintf(buf, "%d.%d.%d", major, minor, patch);
return buf;
}
Expand Down

0 comments on commit 64dedef

Please sign in to comment.