From ae43771ca2ff518563a339abfd8c5f57c6018c6b Mon Sep 17 00:00:00 2001 From: Joseph Redmon Date: Wed, 10 Jun 2015 11:11:09 -0700 Subject: [PATCH] flush stdout --- src/detection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detection.c b/src/detection.c index c8e20ffc..96f8521a 100644 --- a/src/detection.c +++ b/src/detection.c @@ -220,6 +220,7 @@ void test_detection(char *cfgfile, char *weightfile) char filename[256]; while(1){ printf("Image Path: "); + fflush(stdout); fgets(filename, 256, stdin); strtok(filename, "\n"); image im = load_image_color(filename,0,0);