From be470b51f66de6a6c8fe753d3763267505435c4b Mon Sep 17 00:00:00 2001 From: Christophe Varoqui Date: Thu, 23 Oct 2008 22:47:20 +0200 Subject: [PATCH] [lib] terminate the words fetched by get_word() get_word is used to parse words from device maps and status for example. Not terminating these words ended up with unpleasant outputs. --- libmultipath/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmultipath/util.c b/libmultipath/util.c index c7fe6b4..57b2a2d 100644 --- a/libmultipath/util.c +++ b/libmultipath/util.c @@ -95,6 +95,7 @@ get_word (char * sentence, char ** word) return 0; } strncpy(*word, sentence, len); + strchop(*word); condlog(4, "*word = %s, len = %i", *word, len); if (*p == '\0') -- 2.7.4