From f53dc7163c23cffc519d3b962dc5f0cff42b73c3 Mon Sep 17 00:00:00 2001 From: Jack Del Vecchio Date: Fri, 25 Oct 2024 09:31:59 -0400 Subject: [PATCH] Change test to use strieq --- common/remote/hooks/azure/azurefile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/remote/hooks/azure/azurefile.cpp b/common/remote/hooks/azure/azurefile.cpp index 44a197ebc0a..74579f71bd0 100644 --- a/common/remote/hooks/azure/azurefile.cpp +++ b/common/remote/hooks/azure/azurefile.cpp @@ -466,8 +466,8 @@ AzureFile::AzureFile(const char *_azureFileName) : fullName(_azureFileName) if (!api) throw makeStringExceptionV(99, "No storage api defined for plane %s", planeName.str()); - constexpr size_t lenPrefix = strlen(azureBlobPrefix); - if ((strncmp(api, azureBlobPrefix, lenPrefix-1) != 0)) + StringBuffer azureBlobAPI(strlen(azureBlobPrefix) - 1, azureBlobPrefix); + if (!strieq(api, azureBlobAPI.str())) throw makeStringExceptionV(99, "Storage api for plane %s is not azureblob", planeName.str()); unsigned numDevices = plane->getPropInt("@numDevices", 1);