ENGINE-614 - it helps to actually be scanning something if you use sscanf sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Thu, 08 Aug 2019 11:56:11 +0200
branchsync
changeset 39687bef1333235a
parent 3967 e4365dde0495
child 3971 8b2d20579b85
child 3972 418467283c3f
child 3973 7f5f08c3e9b4
ENGINE-614 - it helps to actually be scanning something if you use sscanf
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Thu Aug 08 11:08:15 2019 +0200
     1.2 +++ b/src/pEpEngine.c	Thu Aug 08 11:56:11 2019 +0200
     1.3 @@ -1498,7 +1498,7 @@
     1.4                  // N.B. WE DEFINE PEP_VERSION - IF WE'RE AT 9-DIGIT MAJOR OR MINOR VERSIONS, ER, BAD.
     1.5                  char major_buf[10];
     1.6                  char minor_buf[10];
     1.7 -                if (sscanf("%s.%s", major_buf, minor_buf) != 2)
     1.8 +                if (sscanf(PEP_VERSION, "%s.%s", major_buf, minor_buf) != 2)
     1.9                      return PEP_UNKNOWN_ERROR; // DO BETTER
    1.10                  size_t major_len = strlen(major_buf);
    1.11                  size_t minor_len = strlen(minor_buf);