From 7a30b5ccf77a04e2ecd591c588f01983b528ab14 Mon Sep 17 00:00:00 2001 From: gord-fig Date: Mon, 24 Sep 2001 17:40:19 +0000 Subject: [PATCH] Remove spurious trailing \0 bytes. --- lustre/obdclass/proc_lustre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/proc_lustre.c b/lustre/obdclass/proc_lustre.c index e9fe724..fcd7158 100644 --- a/lustre/obdclass/proc_lustre.c +++ b/lustre/obdclass/proc_lustre.c @@ -76,7 +76,7 @@ static int read_lustre_status(char *page, char **start, off_t offset, if (obddev->obd_refcnt==0) { /* obd is unused */ - p += sprintf(&page[p], "open but unused\n\0"); + p += sprintf(&page[p], "open but unused\n"); } else { /* obd in use */ p += sprintf(&page[p], "refcnt(%d)", obddev->obd_refcnt); @@ -121,7 +121,7 @@ static int read_lustre_status(char *page, char **start, off_t offset, } } - p += sprintf(&page[p], "\n\0"); + p += sprintf(&page[p], "\n"); } /* Compute eof and return value */ -- 1.8.3.1