Skip to content

Commit 211fad5

Browse files
committed
minor fixes
1 parent b919255 commit 211fad5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/box.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ float box_iou_kind(box a, box b, IOU_LOSS iou_kind)
152152
{
153153
//IOU, GIOU, MSE, DIOU, CIOU
154154
switch(iou_kind) {
155-
case MSE: assert(0);
155+
case MSE: assert(0);
156156
case IOU: return box_iou(a, b);
157157
case GIOU: return box_giou(a, b);
158158
case DIOU: return box_diou(a, b);

Diff for: src/classifier.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ void try_classifier(char *datacfg, char *cfgfile, char *weightfile, char *filena
768768
char *input = buff;
769769
while(1){
770770
if(filename){
771-
strncpy(input, filename, 255);
771+
strncpy(input, filename, sizeof buff - 1);
772772
}else{
773773
printf("Enter Image Path: ");
774774
fflush(stdout);

0 commit comments

Comments
 (0)