Commit 8d69143c authored by Brian Wellington's avatar Brian Wellington
Browse files

use ' to quote ', not \

parent 94b6d69d
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: pgsqldb.c,v 1.7 2000/11/20 19:50:00 bwelling Exp $ */
/* $Id: pgsqldb.c,v 1.8 2000/11/20 19:56:11 bwelling Exp $ */
#include <config.h>
......@@ -60,7 +60,9 @@ struct dbinfo {
static void
quotestring(const char *source, char *dest) {
while (*source != 0) {
if (*source == '\\' || *source == '\'')
if (*source == '\'')
*dest++ = '\'';
else if (*source == '\\')
*dest++ = '\\';
*dest++ = *source++;
}
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zonetodb.c,v 1.6 2000/11/20 19:34:13 bwelling Exp $ */
/* $Id: zonetodb.c,v 1.7 2000/11/20 19:56:12 bwelling Exp $ */
#include <isc/buffer.h>
#include <isc/mem.h>
......@@ -70,7 +70,9 @@ check_result(isc_result_t result, const char *message) {
static void
quotestring(const char *source, char *dest) {
while (*source != 0) {
if (*source == '\\' || *source == '\'')
if (*source == '\'')
*dest++ = '\'';
else if (*source == '\\')
*dest++ = '\\';
*dest++ = *source++;
}
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: pgsqldb.c,v 1.7 2000/11/20 19:50:00 bwelling Exp $ */
/* $Id: pgsqldb.c,v 1.8 2000/11/20 19:56:11 bwelling Exp $ */
#include <config.h>
......@@ -60,7 +60,9 @@ struct dbinfo {
static void
quotestring(const char *source, char *dest) {
while (*source != 0) {
if (*source == '\\' || *source == '\'')
if (*source == '\'')
*dest++ = '\'';
else if (*source == '\\')
*dest++ = '\\';
*dest++ = *source++;
}
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: zonetodb.c,v 1.6 2000/11/20 19:34:13 bwelling Exp $ */
/* $Id: zonetodb.c,v 1.7 2000/11/20 19:56:12 bwelling Exp $ */
#include <isc/buffer.h>
#include <isc/mem.h>
......@@ -70,7 +70,9 @@ check_result(isc_result_t result, const char *message) {
static void
quotestring(const char *source, char *dest) {
while (*source != 0) {
if (*source == '\\' || *source == '\'')
if (*source == '\'')
*dest++ = '\'';
else if (*source == '\\')
*dest++ = '\\';
*dest++ = *source++;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment