@@ -1507,7 +1507,7 @@ static void print_supp_op_classes(const uint8_t type, uint8_t len,
printf("\n");
printf("\t\t * current operating class: %d\n", *p);
- while (p++ < next_data) {
+ while (++p < next_data) {
if (*p == 130) {
one_hundred_thirty_delimiter = 1;
break;
@@ -1519,11 +1519,11 @@ static void print_supp_op_classes(const uint8_t type, uint8_t len,
printf("\t\t * operating class: %d\n", *p);
}
if (one_hundred_thirty_delimiter)
- while (p++ < next_data) {
+ while (++p < next_data) {
printf("\t\t * current operating class extension: %d\n", *p);
}
if (zero_delimiter)
- while (p++ < next_data - 1) {
+ while (++p < next_data - 1) {
printf("\t\t * operating class duple: %d %d\n", p[0], p[1]);
if (*p == 0)
break;
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> --- scan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)