git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9ee76d8
)
afsmonitor warnings fix
author
Derrick Brashear
<shadow@dementia.org>
Mon, 28 Sep 2009 11:46:48 +0000 (07:46 -0400)
committer
Derrick 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
patch
|
blob
|
history
diff --git
a/src/afsmonitor/afsmon-win.c
b/src/afsmonitor/afsmon-win.c
index
78cd636
..
62d40bb
100644
(file)
--- 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';