diff options
author | Tom Rini <trini@konsulko.com> | 2021-04-27 08:24:10 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-27 08:24:10 -0400 |
commit | 27af387e4fa7c04d27a92d5d374d81f2a8fa3cce (patch) | |
tree | 091c1c0638bb2ba4ea93f8e06ea7c3a52557fe73 /common/iomux.c | |
parent | 3b589d70cdd0147fb5b5c865a31d63b8f0cd685d (diff) | |
parent | 67e69660781dac57f4a2347e4ae30d97698f245b (diff) |
Merge branch '2021-04-27-assorted-fixes'
- An assortment of bug fixes
Diffstat (limited to 'common/iomux.c')
-rw-r--r-- | common/iomux.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/iomux.c b/common/iomux.c index b9088aa3b5..c428f7110a 100644 --- a/common/iomux.c +++ b/common/iomux.c @@ -158,8 +158,12 @@ int iomux_replace_device(const int console, const char *old, const char *new) return -ENOMEM; } - strcat(tmp, ","); - strcat(tmp, name); + if (arg) { + strcat(tmp, ","); + strcat(tmp, name); + } + else + strcpy(tmp, name); arg = tmp; size = strlen(tmp) + 1; |