summaryrefslogtreecommitdiffstats
path: root/gnupgparse.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-08-06 21:54:22 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-08-06 21:54:22 +0200
commita7838b25797e7bbabcd232e209d3539aa098409c (patch)
treeda277c5164b3ee958167bec1cf0a5efe898d3b5b /gnupgparse.c
parent1ce4a828e2f0ac545ef2628a56b1065282a695b5 (diff)
Fix comparison signedness warnings.
Diffstat (limited to 'gnupgparse.c')
-rw-r--r--gnupgparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnupgparse.c b/gnupgparse.c
index 56f9061f..9de18ebd 100644
--- a/gnupgparse.c
+++ b/gnupgparse.c
@@ -108,7 +108,7 @@ static void fix_uid (char *uid)
memcpy (uid, buf, ob-buf);
uid[ob-buf] = '\0';
}
- else if (ob-buf == n && (buf[n] = 0, strlen (buf) < n))
+ else if (n >= 0 && ob-buf == n && (buf[n] = 0, strlen (buf) < (size_t)n))
memcpy (uid, buf, n);
}
FREE (&buf);