From 1a17acd8e9b7c0ef924f98bfb1502fe12e83c363 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 15 Nov 2012 11:14:58 +0100 Subject: [PATCH] Make _gpgme_encode_percent_string work for memory buffers. * src/conversion.c (D_gpgme_encode_percent_string): Remove stray semicolon. Reported by Xi Wang. -- Obviously this function is not used with a supplied LEN argument != 0. --- src/conversion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conversion.c b/src/conversion.c index 356200ce..b47d6deb 100644 --- a/src/conversion.c +++ b/src/conversion.c @@ -282,7 +282,7 @@ _gpgme_encode_percent_string (const char *src, char **destp, size_t len) /* Set up the destination buffer. */ if (len) { - if (len < destlen); + if (len < destlen) return gpg_error (GPG_ERR_INTERNAL); dest = *destp;