From e0ea561f51aefb98c70aa0476d9898e61cdca7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 16 Apr 2015 02:23:03 +0200 Subject: [PATCH] Fix spawn() argument parsing when passing a string --- src/_frida.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_frida.c b/src/_frida.c index c416ea3..446becd 100644 --- a/src/_frida.c +++ b/src/_frida.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2014 Ole André Vadla Ravnås + * Copyright (C) 2013-2015 Ole André Vadla Ravnås * * Licence: wxWindows Library Licence, Version 3.1 */ @@ -767,7 +767,7 @@ PyDevice_spawn (PyDevice * self, PyObject * args) GError * error = NULL; guint pid; - if (PyTuple_Size (args) == 1 && PySequence_Check (PyTuple_GetItem (args, 0))) + if (PyTuple_Size (args) == 1 && (PyTuple_Check (PyTuple_GetItem (args, 0)) || PyList_Check (PyTuple_GetItem (args, 0)))) { PyObject * argv_elements; Py_ssize_t size, i;