aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libarmep/configuration.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libarmep/configuration.c b/libarmep/configuration.c
index 36e07b2..81a391f 100644
--- a/libarmep/configuration.c
+++ b/libarmep/configuration.c
@@ -278,8 +278,8 @@ int configure(struct aep_context *aep_context, struct aep *aep, const char *dev_
ch->supply[sizeof(ch->supply) - 1] = '\0';
break;
case AEPC_FIELD_COLOUR:
- strncpy(ch->colour, marshall, sizeof(ch->supply) - 1);
- ch->colour[sizeof(ch->supply) - 1] = '\0';
+ strncpy(ch->colour, marshall, sizeof(ch->colour) - 1);
+ ch->colour[sizeof(ch->colour) - 1] = '\0';
break;
default:
break;