Commit e2412e28 authored by Bruno Coudoin's avatar Bruno Coudoin

Fixed a potential va arg overflow.

parent 62cb9be1
......@@ -84,16 +84,24 @@ py_gc_file_find_absolute(PyObject* self, PyObject* args)
char* file;
gchar* result;
/* Parse arguments */
if(!PyArg_ParseTuple(args, "s:gc_db_get_filename", &file))
if(!PyArg_ParseTuple(args, "s:gc_file_find_absolute", &file))
return NULL;
/* Call the corresponding C function */
result = (gchar*)gc_file_find_absolute(file);
result = (gchar*)gc_file_find_absolute(file, NULL);
/* Create and return the result */
return Py_BuildValue("s", result);
if(result==NULL) {
return Py_None;
} else {
printf("ICI3 %s\n", result);
return Py_BuildValue("s", result);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment