summaryrefslogtreecommitdiffstats
path: root/tools/lv2apply.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-12-11 18:34:20 -0500
committerDavid Robillard <d@drobilla.net>2024-12-11 19:39:22 -0500
commit5dc6a712ef2cc383083220326354fc7aa960c798 (patch)
treede4fdfb1102436bd6f431a35df6e5189424551df /tools/lv2apply.c
parent45368fc65aebc892bff3ab4b3e844512af26b566 (diff)
downloadlilv-5dc6a712ef2cc383083220326354fc7aa960c798.tar.gz
lilv-5dc6a712ef2cc383083220326354fc7aa960c798.tar.bz2
lilv-5dc6a712ef2cc383083220326354fc7aa960c798.zip
Avoid use of atoi()
Diffstat (limited to 'tools/lv2apply.c')
-rw-r--r--tools/lv2apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lv2apply.c b/tools/lv2apply.c
index 8fd3753..0792eed 100644
--- a/tools/lv2apply.c
+++ b/tools/lv2apply.c
@@ -243,7 +243,7 @@ main(int argc, char** argv)
self.params =
(Param*)realloc(self.params, ++self.n_params * sizeof(Param));
self.params[self.n_params - 1].sym = argv[++i];
- self.params[self.n_params - 1].value = atof(argv[++i]);
+ self.params[self.n_params - 1].value = strtof(argv[++i], NULL);
} else if (argv[i][0] == '-') {
free(self.params);
return print_usage(1);