/[packages]/cauldron/eggdrop/current/SOURCES/eggdrop1.6.19-fix-str-fmt.patch
ViewVC logotype

Contents of /cauldron/eggdrop/current/SOURCES/eggdrop1.6.19-fix-str-fmt.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2351 - (show annotations) (download)
Sun Jan 9 12:15:15 2011 UTC (13 years, 3 months ago) by kharec
File size: 1465 byte(s)
imported package eggdrop
1 --- src/main.c.str 2009-05-20 07:08:41.000000000 +0200
2 +++ src/main.c 2009-05-20 07:09:09.000000000 +0200
3 @@ -494,7 +494,7 @@
4 break; /* this should never be reached */
5 case 'h':
6 printf("\n%s\n\n", version);
7 - printf(EGG_USAGE);
8 + printf("%s",EGG_USAGE);
9 printf("\n");
10 bg_send_quit(BG_ABORT);
11 exit(0);
12 @@ -815,7 +815,7 @@
13 putlog(LOG_ALL, "*", "--- Loading %s (%s)", ver, s);
14 chanprog();
15 if (!encrypt_pass) {
16 - printf(MOD_NOCRYPT);
17 + printf("%s",MOD_NOCRYPT);
18 bg_send_quit(BG_ABORT);
19 exit(1);
20 }
21 --- src/misc.c.str 2009-05-20 07:09:24.000000000 +0200
22 +++ src/misc.c 2009-05-20 07:09:34.000000000 +0200
23 @@ -577,7 +577,7 @@
24 * then reset repeats. We want the current time here,
25 * so put that in the file first.
26 */
27 - fprintf(logs[i].f, stamp);
28 + fprintf(logs[i].f, "%s",stamp);
29 fprintf(logs[i].f, MISC_LOGREPEAT, logs[i].repeats);
30 logs[i].repeats = 0;
31 /* No need to reset logs[i].szlast here
32 --- src/mod/transfer.mod/transfer.c.str 2009-05-20 07:10:19.000000000 +0200
33 +++ src/mod/transfer.mod/transfer.c 2009-05-20 07:10:31.000000000 +0200
34 @@ -777,7 +777,7 @@
35
36 static void display_dcc_fork_send(int idx, char *buf)
37 {
38 - sprintf(buf, TRANSFER_CONN_SEND);
39 + sprintf(buf, "%s", TRANSFER_CONN_SEND);
40 }
41
42 static int expmem_dcc_xfer(void *x)

  ViewVC Help
Powered by ViewVC 1.1.30