filecount plugin: Substitute slashes with underscores.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 24 Aug 2008 08:58:39 +0000 (10:58 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 24 Aug 2008 08:58:39 +0000 (10:58 +0200)
Not dashes. Somehow I now like underscores better.

src/filecount.c

index d15af75..3d08cbe 100644 (file)
@@ -101,9 +101,9 @@ static int fc_config_set_instance (fc_directory_conf_t *dir, const char *str)
   strncpy (buffer, str, sizeof (buffer));
   for (ptr = buffer; *ptr != 0; ptr++)
     if (*ptr == '/')
-      *ptr = '-';
+      *ptr = '_';
 
-  for (ptr = buffer; *ptr == '-'; ptr++)
+  for (ptr = buffer; *ptr == '_'; ptr++)
     /* do nothing */;
 
   if (*ptr == 0)