aboutsummaryrefslogtreecommitdiff
path: root/op
diff options
context:
space:
mode:
Diffstat (limited to 'op')
-rw-r--r--op/vos_StmtSet.c3
-rw-r--r--op/vos_String.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/op/vos_StmtSet.c b/op/vos_StmtSet.c
index d4e91e6..0057e8d 100644
--- a/op/vos_StmtSet.c
+++ b/op/vos_StmtSet.c
@@ -5,7 +5,8 @@ const char *_stmt_set[N_SET] = {
"PROCESS_COMPARE_CASE_SENSITIVE\0",
"PROCESS_COMPARE_CASE_NOTSENSITIVE\0",
"PROCESS_MAX\0",
- "PROCESS_MAX_ROW\0"
+ "PROCESS_MAX_ROW\0",
+ "PROCESS_TEMPORARY_DIRECTORY\0"
};
int stmtset_create(struct Stmt **stmt)
diff --git a/op/vos_String.c b/op/vos_String.c
index 679e243..ca13453 100644
--- a/op/vos_String.c
+++ b/op/vos_String.c
@@ -64,7 +64,6 @@ int str_append_c(struct String *str, const int c)
*/
int str_append(struct String *S, const char *str)
{
- int i;
int len;
if (! S)
@@ -79,10 +78,11 @@ int str_append(struct String *S, const char *str)
if (! S->buf)
return E_MEM;
}
- for (i = 0; i < len; i++)
- S->buf[S->idx++] = str[i];
- S->buf[S->idx] = '\0';
+ memcpy(&S->buf[S->idx], str, len);
+
+ S->idx += len;
+ S->buf[S->idx] = '\0';
return 0;
}