diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-03-27 12:39:12 +0200 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:54:59 -0700 |
commit | 8a4c0c32f4252efb0f0adbf5cdc0261d359cd568 (patch) | |
tree | f2caa6a8e4ab8eb049172a23a6212346dab4b33e /udev_config.c | |
parent | 6276fdd2ab9c0cbfd0fba3e0261a074e81932156 (diff) |
[PATCH] fix klibc's broken strlcpy/strlcat
udevinfo segfaults cause klibc's strlcpy writes behind the specified
size of the destination string. strlcat truncates the destination
string which is also not what you expect from a concatenation function.
Diffstat (limited to 'udev_config.c')
-rw-r--r-- | udev_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_config.c b/udev_config.c index 7d6bb77e5b..b6f578b27d 100644 --- a/udev_config.c +++ b/udev_config.c @@ -171,7 +171,7 @@ static int parse_config_file(void) if (bufline[0] == COMMENT_CHARACTER) continue; - strlcpy(line, bufline, count); + strlcpy(line, bufline, count+1); linepos = line; retval = get_key(&linepos, &variable, &value); |