From 214adc01bcc2934d15fa54941d5943375f0cc586 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 24 Aug 2008 10:58:39 +0200 Subject: [PATCH] filecount plugin: Substitute slashes with underscores. Not dashes. Somehow I now like underscores better. --- src/filecount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filecount.c b/src/filecount.c index d15af757..3d08cbe2 100644 --- a/src/filecount.c +++ b/src/filecount.c @@ -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) -- 2.11.0