diff options
Diffstat (limited to 'apps/plugins/lib/configfile.c')
-rw-r--r-- | apps/plugins/lib/configfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lib/configfile.c b/apps/plugins/lib/configfile.c index 5e1e776f39..21b66a317b 100644 --- a/apps/plugins/lib/configfile.c +++ b/apps/plugins/lib/configfile.c | |||
@@ -139,7 +139,7 @@ int configfile_load(const char *filename, struct configdata *cfg, | |||
139 | break; | 139 | break; |
140 | 140 | ||
141 | case TYPE_STRING: | 141 | case TYPE_STRING: |
142 | rb->strncpy(cfg[i].string, val, cfg[i].max); | 142 | rb->strlcpy(cfg[i].string, val, cfg[i].max); |
143 | break; | 143 | break; |
144 | } | 144 | } |
145 | } | 145 | } |