From 1bdab961c51fc038c33ae8116595aa0213ab1dd5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 28 Feb 2019 14:05:06 +0100 Subject: [PATCH] json: Fix cosmetic error in the repl. * src/gpgme-json.c (native_messaging_repl): Use correct var with sizeof. -- Signed-off-by: Werner Koch --- src/gpgme-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpgme-json.c b/src/gpgme-json.c index a8f9decd..7957659d 100644 --- a/src/gpgme-json.c +++ b/src/gpgme-json.c @@ -3758,7 +3758,7 @@ native_messaging_repl (void) log_error ("error writing request header: %s\n", gpg_strerror (err)); break; } - if (n != sizeof nrequest) + if (n != sizeof nresponse) { log_error ("error writing request header: short write\n"); break;