From 0675da008b37c50ca7c093574ff5e8753e093f71 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 12 Oct 2018 20:32:28 +0200 Subject: [PATCH] make the paramter param in @dev[param] lower case for commands alter, altermod --- src/frontend/device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/device.c b/src/frontend/device.c index 0dbc57f33..faa592ad9 100644 --- a/src/frontend/device.c +++ b/src/frontend/device.c @@ -1241,6 +1241,10 @@ com_alter_common(wordlist *wl, int do_model) return; } + /* in case the altermod command comes from commandline or + over shared library we have to provide lowercase */ + strtolower(param); + words = eqword->wl_next; /* skip next line if words is a vector */ if (!eq(words->wl_word, "["))