diff --git a/engine/common/common.c b/engine/common/common.c index 1bf91e75f..94ebb4709 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -6168,7 +6168,7 @@ const char *InfoBuf_BlobForKey (infobuf_t *info, const char *key, size_t *blobsi return info->keys[k].value; } if (large) - *large = InfoBuf_NeedsEncoding(key, sizeof(key)); + *large = InfoBuf_NeedsEncoding(key, strlen(key)); *blobsize = 0; return NULL; }