diff options
author | portix <portix@gmx.net> | 2014-02-26 10:33:33 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-02-26 10:33:33 +0100 |
commit | 0c70cca9525d790543a8de1ddd2ca74cc842f1d7 (patch) | |
tree | 3460f80008fc332b5fc97be756fa87ae2242e5a4 | |
parent | 888999b50a524334fe08c4b590b86c22c6a1c90e (diff) | |
download | dwb-0c70cca9525d790543a8de1ddd2ca74cc842f1d7.zip |
dwbem: Cast message body to unsigned char for exar_extract_from_data
-rw-r--r-- | dwbem/dwbem.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dwbem/dwbem.c b/dwbem/dwbem.c index 08a887c4..98d8966d 100644 --- a/dwbem/dwbem.c +++ b/dwbem/dwbem.c @@ -47,10 +47,8 @@ #include <exar.h> -//#define API_BASE "https://api.bitbucket.org/1.0/repositories/portix/dwb_extensions/src/tip/src/?format=yaml" -#define API_BASE "https://api.bitbucket.org/1.0/repositories/portix/dwbemtest/src/tip/src/?format=yaml" -//#define REPO_BASE "https://bitbucket.org/portix/dwb_extensions" -#define REPO_BASE "https://bitbucket.org/portix/dwbemtest" +#define API_BASE "https://api.bitbucket.org/1.0/repositories/portix/dwb_extensions/src/tip/src/?format=yaml" +#define REPO_BASE "https://bitbucket.org/portix/dwb_extensions" #define REPO_TREE "/raw/tip/src" #define SKIP(line, c) do{ \ @@ -1138,7 +1136,7 @@ cl_info(const char *name, int flags) msg = soup_message_new("GET", path); int status = soup_session_send_message(session, msg); if (status == 200) { - if (exar_check_version_from_data(msg->response_body->data, msg->response_body->length) == 0) { + if (exar_check_version_from_data((unsigned char *)msg->response_body->data, msg->response_body->length) == 0) { char *mainfile = (char *)exar_search_extract_from_data((unsigned char *)msg->response_body->data, "main.js", NULL); if (mainfile != NULL) { data = get_data(NULL, mainfile, "INFO", F_MATCH_MULTILINE | F_MATCH_CONTENT); |