Skip to content

Commit e359beb

Browse files
committed
char array must be mutable
1 parent f372c5e commit e359beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/client/sec_index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static inline PyObject *AerospikeClient_Index_Create(AerospikeClient *self,
403403
static char *kwlist[] = {"ns", "set", "bin", "index_datatype",
404404
"name", "policy", "ctx", NULL};
405405

406-
const char format[256];
406+
char format[256];
407407
snprintf(format, 256, "OOOOO|O:%s", ml_name);
408408
if (PyArg_ParseTupleAndKeywords(args, kwds, format, kwlist, &py_ns, &py_set,
409409
&py_bin, &py_datatype, &py_name, &py_policy,

0 commit comments

Comments
 (0)