diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-05-11 23:40:58 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-21 23:21:47 +0200 |
commit | cb529b713f4882ac65a074ae8d87faa41d19168e (patch) | |
tree | b9f23f33a817107127020630c7b9b5764e8685f0 /lib/x509asn1.c | |
parent | f3d836b73601fc6d14cb917e1cd72f43b9056dff (diff) | |
download | curl-cb529b713f4882ac65a074ae8d87faa41d19168e.tar.gz |
checksrc: make sure sizeof() is used *with* parentheses
... and unify the source code to adhere.
Closes #2563
Diffstat (limited to 'lib/x509asn1.c')
-rw-r--r-- | lib/x509asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509asn1.c b/lib/x509asn1.c index bba20233f..052bcad7e 100644 --- a/lib/x509asn1.c +++ b/lib/x509asn1.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -712,7 +712,7 @@ int Curl_parseX509(curl_X509certificate *cert, /* Get optional version, get serialNumber. */ cert->version.header = NULL; cert->version.beg = &defaultVersion; - cert->version.end = &defaultVersion + sizeof defaultVersion;; + cert->version.end = &defaultVersion + sizeof(defaultVersion); beg = Curl_getASN1Element(&elem, beg, end); if(elem.tag == 0) { Curl_getASN1Element(&cert->version, elem.beg, elem.end); |