json: Fix cosmetic error in the repl.

* src/gpgme-json.c (native_messaging_repl): Use correct var with sizeof.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-02-28 14:05:06 +01:00
parent b159b2eddd
commit 1bdab961c5
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -3758,7 +3758,7 @@ native_messaging_repl (void)
log_error ("error writing request header: %s\n", gpg_strerror (err)); log_error ("error writing request header: %s\n", gpg_strerror (err));
break; break;
} }
if (n != sizeof nrequest) if (n != sizeof nresponse)
{ {
log_error ("error writing request header: short write\n"); log_error ("error writing request header: short write\n");
break; break;