ENGINE-109: pointer fix
authorKrista Grothoff <krista@pep-project.org>
Tue, 18 Oct 2016 19:33:34 +0200
changeset 13130869ca4214df
parent 1312 e90df3390555
child 1314 d886cca6586a
ENGINE-109: pointer fix
src/message_api.c
     1.1 --- a/src/message_api.c	Tue Oct 18 19:23:51 2016 +0200
     1.2 +++ b/src/message_api.c	Tue Oct 18 19:33:34 2016 +0200
     1.3 @@ -1924,8 +1924,8 @@
     1.4      
     1.5      char current;
     1.6  
     1.7 -    for (current = *fpr1_curr; current != '0' && current != '\0'; fpr1_curr++, fpr1_len--);
     1.8 -    for (current = *fpr2_curr; current != '0' && current != '\0'; fpr2_curr++, fpr2_len--);
     1.9 +    for (current = *fpr1_curr; current != '0' && current != '\0'; current = *(++fpr1_curr), fpr1_len--);
    1.10 +    for (current = *fpr2_curr; current != '0' && current != '\0'; current = *(++fpr2_curr), fpr2_len--);
    1.11      
    1.12      if (fpr1_len == fpr2_len) {
    1.13          char digit1;