]> git.pld-linux.org Git - packages/proftpd.git/blame - proftpd-CAN-2005-2390.patch
- fix ftptop linking with ncurses
[packages/proftpd.git] / proftpd-CAN-2005-2390.patch
CommitLineData
4b24b9d2
AG
1diff -burN proftpd-1.2.10.orig/contrib/mod_sql.c proftpd-1.2.10/contrib/mod_sql.c
2--- proftpd-1.2.10.orig/contrib/mod_sql.c 2005-08-04 15:57:39.050981712 +0200
3+++ proftpd-1.2.10/contrib/mod_sql.c 2005-08-04 15:57:49.922329016 +0200
4@@ -2036,7 +2036,7 @@
5 *outsp++ = 0;
6
7 /* add the response */
8- pr_response_add( c->argv[0], outs);
9+ pr_response_add(c->argv[0], "%s", outs);
10
11 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
12
13@@ -2110,7 +2110,7 @@
14 *outsp++ = 0;
15
16 /* add the response */
17- pr_response_add( c->argv[0], outs);
18+ pr_response_add(c->argv[0], "%s", outs);
19
20 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
21
22@@ -2201,7 +2201,7 @@
23 *outsp++ = 0;
24
25 /* add the response */
26- pr_response_add_err( c->argv[0], outs);
27+ pr_response_add_err(c->argv[0], "%s", outs);
28
29 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
30
31@@ -2275,7 +2275,7 @@
32 *outsp++ = 0;
33
34 /* add the response */
35- pr_response_add( c->argv[0], outs);
36+ pr_response_add(c->argv[0], "%s", outs);
37
38 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
39
40diff -burN proftpd-1.2.10.orig/src/response.c proftpd-1.2.10/src/response.c
41--- proftpd-1.2.10.orig/src/response.c 2005-08-04 15:57:39.125970312 +0200
42+++ proftpd-1.2.10/src/response.c 2005-08-04 15:57:46.478852504 +0200
43@@ -1,6 +1,6 @@
44 /*
45 * ProFTPD - FTP server daemon
46- * Copyright (c) 2001, 2002, 2003 The ProFTPD Project team
47+ * Copyright (c) 2001-2005 The ProFTPD Project team
48 *
49 * This program is free software; you can redistribute it and/or modify
50 * it under the terms of the GNU General Public License as published by
51@@ -169,7 +169,7 @@
52 buf[sizeof(buf) - 1] = '\0';
53 sstrcat(buf, "\r\n", sizeof(buf));
54
55- RESPONSE_WRITE_STR_ASYNC(session.c->outstrm, buf, strlen(buf))
56+ RESPONSE_WRITE_STR_ASYNC(session.c->outstrm, "%s", buf)
57 }
58
59 void pr_response_send(const char *resp_numeric, const char *fmt, ...) {
This page took 0.03154 seconds and 4 git commands to generate.