afsmonitor warnings fix
authorDerrick Brashear <shadow@dementia.org>
Mon, 28 Sep 2009 11:46:48 +0000 (07:46 -0400)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 28 Sep 2009 11:55:11 +0000 (04:55 -0700)
again, add missing format strings to *printf to
eliminate warnings

Reviewed-on: http://gerrit.openafs.org/529
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/afsmonitor/afsmon-win.c

index 78cd636..62d40bb 100644 (file)
@@ -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';