From: Derrick Brashear Date: Mon, 28 Sep 2009 11:46:48 +0000 (-0400) Subject: afsmonitor warnings fix X-Git-Tag: openafs-devel-1_5_65~28 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5d3400f4e103a7c4d7027cb809c8a109bf003316;p=packages%2Fo%2Fopenafs.git afsmonitor warnings fix again, add missing format strings to *printf to eliminate warnings Reviewed-on: http://gerrit.openafs.org/529 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- diff --git a/src/afsmonitor/afsmon-win.c b/src/afsmonitor/afsmon-win.c index 78cd63663..62d40bbcf 100644 --- a/src/afsmonitor/afsmon-win.c +++ b/src/afsmonitor/afsmon-win.c @@ -1765,7 +1765,7 @@ fs_refresh(int a_pageNum, /* page to display */ /* display the hostname , first names only please! */ - sprintf(printBuf, fsDataP->hostName); + sprintf(printBuf, "%s", fsDataP->hostName); for (j = 0; j < strlen(printBuf); j++) { if (printBuf[j] == '.') { printBuf[j] = '\0'; @@ -2548,7 +2548,7 @@ cm_refresh(int a_pageNum, /* page to display */ /* display the hostname , first names only please! */ - sprintf(printBuf, cmDataP->hostName); + sprintf(printBuf, "%s", cmDataP->hostName); for (j = 0; j < strlen(printBuf); j++) { if (printBuf[j] == '.') { printBuf[j] = '\0';