Skip to content

Commit

Permalink
Need to adjust query size before copy
Browse files Browse the repository at this point in the history
  • Loading branch information
bendailey committed Dec 3, 2015
1 parent 87e4349 commit 59ef336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib4d_sql/fourd.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ FOURD_STATEMENT * fourd_prepare_statement(FOURD *cnx,const char *query)
*/
state=calloc(1,sizeof(FOURD_STATEMENT));
state->cnx=cnx;
/*state->query=(char *)malloc(strlen(query)+1);*/
state->query=(char *)malloc(strlen(query)+1);

/* allocate arbitrarily five elements in this table */
state->nbAllocElement=5;
Expand Down

0 comments on commit 59ef336

Please sign in to comment.