From 0407aeae01e38098a8dfa6fec4a04d254f8b6517 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Wed, 10 Oct 2001 02:51:57 +0000 Subject: [PATCH] One more place where PyString_AsString() was used after a PyString_Check() had already succeeded. --- Python/getargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/getargs.c b/Python/getargs.c index ad80b3f08ab..089aaeafbd7 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -553,7 +553,7 @@ convertsimple(PyObject *arg, char **p_format, va_list *p_va, char *msgbuf) case 'c': {/* char */ char *p = va_arg(*p_va, char *); if (PyString_Check(arg) && PyString_Size(arg) == 1) - *p = PyString_AsString(arg)[0]; + *p = PyString_AS_STRING(arg)[0]; else return converterr("char", arg, msgbuf); break;