summaryrefslogtreecommitdiff
path: root/io/hpmud/hpmud.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/hpmud/hpmud.c')
-rw-r--r--io/hpmud/hpmud.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io/hpmud/hpmud.c b/io/hpmud/hpmud.c
index 0eb6fff3a..358f27999 100644
--- a/io/hpmud/hpmud.c
+++ b/io/hpmud/hpmud.c
@@ -759,6 +759,7 @@ enum HPMUD_RESULT hpmud_get_dstat(HPMUD_DEVICE dd, struct hpmud_dstat *ds)
}
strncpy(ds->uri, msp->device[dd].uri, sizeof(ds->uri));
+ ds->uri[sizeof(ds->uri)-1] = '\0';
ds->io_mode = msp->device[dd].io_mode;
ds->channel_cnt = msp->device[dd].channel_cnt;
ds->mlc_up = msp->device[dd].mlc_up;