summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-09 10:23:49 -0700
committerKeith Packard <keithp@keithp.com>2009-05-09 10:23:49 -0700
commite80b87f5e3ccf152d67a2e87bdefda161c455599 (patch)
tree8584bf602e4d5df0d1e054f95dcf8256f59832a0
parentbeae3360828da21eb1a3c4f88e930f242d4e36b7 (diff)
Pad callsign with nuls
-rw-r--r--ao_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ao_config.c b/ao_config.c
index 9bb8fd1a..02f1e082 100644
--- a/ao_config.c
+++ b/ao_config.c
@@ -87,6 +87,8 @@ ao_config_callsign_set(void) __reentrant
return;
ao_mutex_get(&ao_config_mutex);
_ao_config_get();
+ while (c < AO_MAX_CALLSIGN + 1)
+ callsign[c++] = '\0';
memcpy(&ao_config.callsign, &callsign,
AO_MAX_CALLSIGN + 1);
ao_config_dirty = 1;