summaryrefslogtreecommitdiff
path: root/lib/x509asn1.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-30 13:13:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-30 23:53:58 +0200
commit78fc6522c2bb0cf45b5daa62af745fbfaa62a412 (patch)
tree630a57ec0dd51fc81d3753b5cd763833b3c37882 /lib/x509asn1.c
parentd696ee00eec865747daedfaeeb1a880cf7d9a65c (diff)
downloadcurl-78fc6522c2bb0cf45b5daa62af745fbfaa62a412.tar.gz
lib: fix type of len passed to *printf's %*s
... it needs to be 'int'. Detected by Coverity CID 1486611 (etc) Closes #7326
Diffstat (limited to 'lib/x509asn1.c')
-rw-r--r--lib/x509asn1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509asn1.c b/lib/x509asn1.c
index 281c97248..acd39a4ed 100644
--- a/lib/x509asn1.c
+++ b/lib/x509asn1.c
@@ -518,7 +518,7 @@ static const char *GTime2str(const char *beg, const char *end)
beg, beg + 4, beg + 6,
beg + 8, beg + 10, sec1, sec2,
fracl? ".": "", fracl, fracp,
- sep, tzl, tzp);
+ sep, (int)tzl, tzp);
}
/*
@@ -558,7 +558,7 @@ static const char *UTime2str(const char *beg, const char *end)
return curl_maprintf("%u%.2s-%.2s-%.2s %.2s:%.2s:%.2s %.*s",
20 - (*beg >= '5'), beg, beg + 2, beg + 4,
beg + 6, beg + 8, sec,
- tzl, tzp);
+ (int)tzl, tzp);
}
/*