1 diff -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
8 - pr_response_add( c->argv[0], outs);
9 + pr_response_add(c->argv[0], "%s", outs);
11 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
16 /* add the response */
17 - pr_response_add( c->argv[0], outs);
18 + pr_response_add(c->argv[0], "%s", outs);
20 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
25 /* add the response */
26 - pr_response_add_err( c->argv[0], outs);
27 + pr_response_add_err(c->argv[0], "%s", outs);
29 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
34 /* add the response */
35 - pr_response_add( c->argv[0], outs);
36 + pr_response_add(c->argv[0], "%s", outs);
38 } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
40 diff -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
45 * ProFTPD - FTP server daemon
46 - * Copyright (c) 2001, 2002, 2003 The ProFTPD Project team
47 + * Copyright (c) 2001-2005 The ProFTPD Project team
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
52 buf[sizeof(buf) - 1] = '\0';
53 sstrcat(buf, "\r\n", sizeof(buf));
55 - RESPONSE_WRITE_STR_ASYNC(session.c->outstrm, buf, strlen(buf))
56 + RESPONSE_WRITE_STR_ASYNC(session.c->outstrm, "%s", buf)
59 void pr_response_send(const char *resp_numeric, const char *fmt, ...) {