From a3a3eae791eaa4fea1cff44dec95bb3393c0289f Mon Sep 17 00:00:00 2001 From: Rui Nuno Capela Date: Sun, 11 Nov 2018 21:24:18 +0000 Subject: [PATCH] [metadata-remove-property-fix] Fix #390 - Meta-data delete-all crashes the client. (#391) --- common/JackRequest.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/JackRequest.h b/common/JackRequest.h index af843191..18462af0 100644 --- a/common/JackRequest.h +++ b/common/JackRequest.h @@ -1647,7 +1647,8 @@ struct JackPropertyChangeNotifyRequest : public JackRequest { jack_uuid_copy(&fSubject, subject); memset(fKey, 0, sizeof(fKey)); - strncpy(fKey, key, sizeof(fKey)-1); + if (key) + strncpy(fKey, key, sizeof(fKey)-1); } int Read(detail::JackChannelTransactionInterface* trans)