diff options
author | Richard Hughes <richard@hughsie.com> | 2014-01-09 08:58:39 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-01-09 08:58:39 +0000 |
commit | 2e12ce52ff94bf87086df2734bf8e32e7a108efb (patch) | |
tree | 473a4bc5db7792d22cb4f30eb5914f39d4970059 /contrib | |
parent | 7b73d55ef6045412a1f76e0d9e515b97b2cbbdb6 (diff) | |
download | colord-2e12ce52ff94bf87086df2734bf8e32e7a108efb.tar.gz |
trivial: Remove the '.csv' extension in cd-csv2cmf
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/csv2cmf/cd-main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/csv2cmf/cd-main.c b/contrib/csv2cmf/cd-main.c index 1fe5eda..f4cbeb0 100644 --- a/contrib/csv2cmf/cd-main.c +++ b/contrib/csv2cmf/cd-main.c @@ -56,6 +56,7 @@ main (int argc, char *argv[]) gchar **lines = NULL; gchar **split; gchar *data = NULL; + gchar *dot; gchar *originator = NULL; gchar *title = NULL; guint i; @@ -136,6 +137,9 @@ main (int argc, char *argv[]) originator = g_path_get_basename (argv[0]); cd_it8_set_originator (cmf, originator); title = g_path_get_basename (argv[1]); + dot = g_strrstr (title, ".csv"); + if (dot != NULL) + *dot = '\0'; cd_it8_set_title (cmf, title); cd_it8_set_spectral_data (cmf, spectra); |