summaryrefslogtreecommitdiff
path: root/src/certtool-cfg.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-22 16:18:01 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-22 16:18:01 +0100
commit8c4a4a74c84f937c6eaf0a8aab27f7417487a6f0 (patch)
tree9e5ddd6b35890e081a08ee44c46db5cf893434ea /src/certtool-cfg.c
parent9c0ebc73b82fcb605a146f3b1d83003e118bd210 (diff)
downloadgnutls-8c4a4a74c84f937c6eaf0a8aab27f7417487a6f0.tar.gz
certtool: address compiler warnings
Diffstat (limited to 'src/certtool-cfg.c')
-rw-r--r--src/certtool-cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/certtool-cfg.c b/src/certtool-cfg.c
index 186acfa308..90a0ac59fa 100644
--- a/src/certtool-cfg.c
+++ b/src/certtool-cfg.c
@@ -264,7 +264,7 @@ void cfg_init(void)
if (val && !strcmp(val->pzName, name)==0) \
continue; \
len = strlen(val->v.strVal); \
- if (sizeof(str) > len) { \
+ if (sizeof(str) > (unsigned)len) { \
strcpy(str, val->v.strVal); \
} else { \
memcpy(str, val->v.strVal, sizeof(str)-1); \