From 52f731c6b70c9b7b7c993798f2c82cc9cc468250 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Mon, 13 Jun 2011 08:17:36 +0200 Subject: [PATCH] fixed argv clobbering in command line module functions --- plugins/python/pyloader.c | 2 +- utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/python/pyloader.c b/plugins/python/pyloader.c index f18bcc8e..33120dd1 100644 --- a/plugins/python/pyloader.c +++ b/plugins/python/pyloader.c @@ -439,7 +439,7 @@ PyObject *uwsgi_uwsgi_loader(void *arg1) { if (quick_callable[strlen(quick_callable) -2 ] == '(' && quick_callable[strlen(quick_callable) -1] ==')') { quick_callable[strlen(quick_callable) -2 ] = 0; tmp_callable = PyDict_GetItemString(wsgi_dict, quick_callable); - quick_callable[strlen(quick_callable) -2 ] = '('; + quick_callable[strlen(quick_callable)] = '('; if (tmp_callable) { return python_call(tmp_callable, PyTuple_New(0), 0); } diff --git a/utils.c b/utils.c index c5bffe9b..9d84f8e8 100644 --- a/utils.c +++ b/utils.c @@ -1289,7 +1289,7 @@ int uwsgi_read_whole_body_in_mem(struct wsgi_request *wsgi_req, char *buf) { } if (!ret) { - uwsgi_log("buffering POST data timedout !!!\n"); + uwsgi_log("buffering POST data timed-out !!!\n"); return 0; }