- Fix warning -Werror=format-security (#8525)

Co-authored-by: Jeremy Prater <silverevo03@gmail.com>
This commit is contained in:
Akash Patel 2022-06-08 09:38:53 -04:00 committed by GitHub
parent 4a7c2802e0
commit eaee5060d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ static void print_cocos(FILE *fp, char *image_path, detection *dets, int num_box
if (dets[i].prob[j] > 0) {
char buff[1024];
sprintf(buff, "{\"image_id\":%d, \"category_id\":%d, \"bbox\":[%f, %f, %f, %f], \"score\":%f},\n", image_id, coco_ids[j], bx, by, bw, bh, dets[i].prob[j]);
fprintf(fp, buff);
fprintf(fp, "%s", buff);
//printf("%s", buff);
}
}