Subversion Repositories RepoView

Rev

Rev 15 | Rev 31 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 30
Line 1... Line 1...
1
/* $Id: sqlite.c 15 2024-08-21 15:36:37Z nishi $ */
1
/* $Id: sqlite.c 30 2024-08-21 19:29:43Z nishi $ */
2
 
2
 
3
#include "rv_db.h"
3
#include "rv_db.h"
4
 
4
 
5
#include "../../config.h"
5
#include "../../config.h"
6
 
6
 
Line 76... Line 76...
76
	int i;
76
	int i;
77
	for(i = 0; input[i] != 0; i++) {
77
	for(i = 0; input[i] != 0; i++) {
78
		if(input[i] == '\'') {
78
		if(input[i] == '\'') {
79
			cbuf[0] = input[i];
79
			cbuf[0] = input[i];
80
			char* tmp = query;
80
			char* tmp = query;
81
			tmp = rv_strcat(tmp, cbuf);
81
			query rv_strcat(tmp, cbuf);
82
			free(tmp);
82
			free(tmp);
83
			cbuf[0] = input[i];
83
			cbuf[0] = input[i];
84
			tmp = query;
84
			tmp = query;
85
			query = rv_strcat(tmp, cbuf);
85
			query = rv_strcat(tmp, cbuf);
86
			free(tmp);
86
			free(tmp);