mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-20 12:45:40 -05:00
Fix Random Warnings on #152
This commit is contained in:
@@ -2521,7 +2521,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
|||||||
printw (" AES-CTR - IV: ");
|
printw (" AES-CTR - IV: ");
|
||||||
//display packed meta as IV
|
//display packed meta as IV
|
||||||
for (i = 0; i < 14; i++)
|
for (i = 0; i < 14; i++)
|
||||||
printw ("%02X", state->m17_meta);
|
printw ("%02X", state->m17_meta[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state->m17_enc == 3)
|
if (state->m17_enc == 3)
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ void M17decodeCSD(dsd_state * state, unsigned long long int dst, unsigned long l
|
|||||||
dst = dst / 40;
|
dst = dst / 40;
|
||||||
}
|
}
|
||||||
//assign completed CSD to a more useful string instead
|
//assign completed CSD to a more useful string instead
|
||||||
sprintf (state->m17_dst_str, "%c%c%c%c%c%c%c%c%c\0",
|
sprintf (state->m17_dst_str, "%c%c%c%c%c%c%c%c%c",
|
||||||
state->m17_dst_csd[0], state->m17_dst_csd[1], state->m17_dst_csd[2], state->m17_dst_csd[3],
|
state->m17_dst_csd[0], state->m17_dst_csd[1], state->m17_dst_csd[2], state->m17_dst_csd[3],
|
||||||
state->m17_dst_csd[4], state->m17_dst_csd[5], state->m17_dst_csd[6], state->m17_dst_csd[7], state->m17_dst_csd[8]);
|
state->m17_dst_csd[4], state->m17_dst_csd[5], state->m17_dst_csd[6], state->m17_dst_csd[7], state->m17_dst_csd[8]);
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ void M17decodeCSD(dsd_state * state, unsigned long long int dst, unsigned long l
|
|||||||
src = src / 40;
|
src = src / 40;
|
||||||
}
|
}
|
||||||
//assign completed CSD to a more useful string instead
|
//assign completed CSD to a more useful string instead
|
||||||
sprintf (state->m17_src_str, "%c%c%c%c%c%c%c%c%c\0",
|
sprintf (state->m17_src_str, "%c%c%c%c%c%c%c%c%c",
|
||||||
state->m17_src_csd[0], state->m17_src_csd[1], state->m17_src_csd[2], state->m17_src_csd[3],
|
state->m17_src_csd[0], state->m17_src_csd[1], state->m17_src_csd[2], state->m17_src_csd[3],
|
||||||
state->m17_src_csd[4], state->m17_src_csd[5], state->m17_src_csd[6], state->m17_src_csd[7], state->m17_src_csd[8]);
|
state->m17_src_csd[4], state->m17_src_csd[5], state->m17_src_csd[6], state->m17_src_csd[7], state->m17_src_csd[8]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user