From 9d9c66b78446aedbccc88d1313a4170e49d917dc Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 19 Oct 2016 10:04:59 +0100 Subject: [PATCH] Replace strchr() condition with TrimSuffixC(). --- uip/mhstoresbr.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index 676ac49a..f6bc8dcb 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -1308,10 +1308,7 @@ clobber_check (char *original_file, mhstoreinfo_t info) { file = NULL; ++info->files_not_clobbered; } else { - char *newline = strchr (buf, '\n'); - if (newline) { - *newline = '\0'; - } + TrimSuffixC(buf, '\n'); } free (file); -- 2.56.0