File: warning-fixes.diff

package info (click to toggle)
kdrill 6.5deb2-13.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,392 kB
  • sloc: ansic: 7,640; makefile: 47
file content (22 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/prefs.c
+++ b/prefs.c
@@ -203,7 +203,7 @@
 	
 	while(*rname!=NULL){
 		char classbuff[100], infobuff[100];
-		sprintf(classbuff,*rname);
+		strcpy(classbuff,*rname);
 
 		GetXtrmString(*rname, classbuff,infobuff);
 		if(strcmp(infobuff, "NOT SET")==0){
--- a/radsearch.c
+++ b/radsearch.c
@@ -150,7 +150,7 @@
 #endif
 
 		printf("DEBUG: copying %d bytes from %p to %p\n",
-		       (newcount+1)*sizeof(XChar2b),newactivelist,activelist);
+		       (int)((newcount+1)*sizeof(XChar2b)),newactivelist,activelist);
 
 		bcopy(newactivelist,activelist,(newcount+1)*sizeof(XChar2b));
 #ifdef DEBUG