diff --git a/samples/fleet_provisioning/fleet_provisioning/main.cpp b/samples/fleet_provisioning/fleet_provisioning/main.cpp index d91612301..a517b1e29 100644 --- a/samples/fleet_provisioning/fleet_provisioning/main.cpp +++ b/samples/fleet_provisioning/fleet_provisioning/main.cpp @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) if (cmdData.input_csrPath != "") { - csrFile = getFileData(cmdData.input_csrPath.c_str()); + csrFile = getFileData(cmdData.input_csrPath.c_str()).c_str(); } /**