From: gord-fig Date: Mon, 24 Sep 2001 17:40:19 +0000 (+0000) Subject: Remove spurious trailing \0 bytes. X-Git-Tag: v1_7_100~6083 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=7a30b5ccf77a04e2ecd591c588f01983b528ab14 Remove spurious trailing \0 bytes. --- 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 */