summaryrefslogtreecommitdiff
path: root/udev_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_config.c')
-rw-r--r--udev_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_config.c b/udev_config.c
index cade81cf20..de83ef9c4c 100644
--- a/udev_config.c
+++ b/udev_config.c
@@ -81,7 +81,7 @@ static void init_variables(void)
#define set_var(_name, _var) \
if (strcasecmp(variable, _name) == 0) { \
dbg_parse("%s = '%s'", _name, value); \
- strncpy(_var, value, sizeof(_var)); \
+ strnfieldcpy(_var, value, sizeof(_var));\
}
#define set_bool(_name, _var) \