src/oping.c: Add missing "break" in handling of the "O" option.
[liboping.git] / src / oping.c
index e3bbffc..883c862 100644 (file)
@@ -754,6 +754,7 @@ static int read_options (int argc, char **argv) /* {{{ */
                                        free (opt_outfile);
                                        opt_outfile = strdup (optarg);
                                }
+                               break;
 
                        case 'P':
                                {
@@ -1611,7 +1612,7 @@ static void update_host_hook (pingobj_iter_t *iter, /* {{{ */
                        if ((sequence % 32) == 0)
                                fprintf (outfile, "#time,host,latency[ms]\n");
 
-                       fprintf (outfile, "%.3f \"%s\" %.2f\n", t, context->host, latency);
+                       fprintf (outfile, "%.3f,\"%s\",%.2f\n", t, context->host, latency);
                }
        }