@@ -88,7 +88,7 @@ TEST testPDALGetPipelineAsString(void)
8888
8989 // Make sure that the JSON object's name is "pipeline"
9090 char jsonName[16];
91- sscanf (json, "%*s\n\t%10s", &jsonName);
91+ sscanf_s (json, "%*s\n\t%10s", &jsonName, 16 );
9292 ASSERT_STR_EQ("\"pipeline\"", jsonName);
9393
9494 PDALDisposePipeline(pipeline);
@@ -110,7 +110,7 @@ TEST testPDALGetPipelineMetadata(void)
110110
111111 // Make sure that the JSON object's name is "metadata"
112112 char jsonName[16];
113- sscanf (json, "%*s\n\t%10s", &jsonName);
113+ sscanf_s (json, "%*s\n\t%10s", &jsonName, 16 );
114114 ASSERT_STR_EQ("\"metadata\"", jsonName);
115115
116116 PDALDisposePipeline(pipeline);
@@ -132,7 +132,7 @@ TEST testPDALGetPipelineSchema(void)
132132
133133 // Make sure that the JSON object's name is "schema"
134134 char jsonName[16];
135- sscanf (json, "%*s\n\t%8s", &jsonName);
135+ sscanf_s (json, "%*s\n\t%8s", &jsonName, 16 );
136136 ASSERT_STR_EQ("\"schema\"", jsonName);
137137
138138 PDALDisposePipeline(pipeline);
0 commit comments