aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-02-28 13:05:06 +0000
committerWerner Koch <[email protected]>2019-02-28 13:05:06 +0000
commit1bdab961c51fc038c33ae8116595aa0213ab1dd5 (patch)
tree304ff9b52b99e8ce093fb71dad13a34ce473175e
parenttests: Let run-verify print the de-vs flag. (diff)
downloadgpgme-1bdab961c51fc038c33ae8116595aa0213ab1dd5.tar.gz
gpgme-1bdab961c51fc038c33ae8116595aa0213ab1dd5.zip
json: Fix cosmetic error in the repl.
* src/gpgme-json.c (native_messaging_repl): Use correct var with sizeof. -- Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--src/gpgme-json.c2
1 files changed, 1 insertions, 1 deletions
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;