diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/c/sg/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/c/sg/sg.c b/src/runtime/c/sg/sg.c index ce5748cd2..64ff2410d 100644 --- a/src/runtime/c/sg/sg.c +++ b/src/runtime/c/sg/sg.c @@ -34,7 +34,7 @@ sg_raise_sqlite(int rc, GuExn* err) GuExnData* err_data = gu_raise(err, SgError); if (err_data) { - err_data->data = gu_malloc(err_data->pool, strlen(msg+1)); + err_data->data = gu_malloc(err_data->pool, strlen(msg)+1); strcpy(err_data->data, msg); } } |
