mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 22:33:48 -07:00
make style
This commit is contained in:
parent
0ed0735709
commit
2a705d3a44
2 changed files with 5 additions and 5 deletions
|
@ -1077,7 +1077,7 @@ void pm3_version(bool verbose, bool oneliner) {
|
|||
if (ptr != NULL) {
|
||||
ptr = strstr(ptr, "\n");
|
||||
if ((ptr != NULL) && (strlen(g_version_information.armsrc) == 9)) {
|
||||
if (strncmp(ptr-9, g_version_information.armsrc, 9) != 0) {
|
||||
if (strncmp(ptr - 9, g_version_information.armsrc, 9) != 0) {
|
||||
armsrc_mismatch = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -345,8 +345,8 @@ int flash_check(flash_file_t *ctx, const char *name) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
for(uint16_t i=0; i<ehdr.e_shnum; i++) {
|
||||
if (strcmp(((char *)shstr) + shdrs[i].sh_name, ".version_information")==0){
|
||||
for (uint16_t i = 0; i < ehdr.e_shnum; i++) {
|
||||
if (strcmp(((char *)shstr) + shdrs[i].sh_name, ".version_information") == 0) {
|
||||
vi = calloc(shdrs[i].sh_size, sizeof(uint8_t));
|
||||
if (!vi) {
|
||||
PrintAndLogEx(ERR, "Out of memory");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue