diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/IO/dpi.c | 16 | ||||
-rw-r--r-- | src/cookies.c | 2 | ||||
-rw-r--r-- | src/dpiapi.c | 12 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/IO/dpi.c b/src/IO/dpi.c index 3ad1c7ed..34932a6a 100644 --- a/src/IO/dpi.c +++ b/src/IO/dpi.c @@ -221,14 +221,14 @@ static void Dpi_parse_token(dpi_conn_t *conn) tag = dStrndup(Tok, (size_t)conn->TokSize); _MSG("Dpi_parse_token: {%s}\n", tag); - cmd = a_Dpip_get_attr(Tok, conn->TokSize, "cmd"); + cmd = a_Dpip_get_attr_l(Tok, conn->TokSize, "cmd"); if (strcmp(cmd, "send_status_message") == 0) { - msg = a_Dpip_get_attr(Tok, conn->TokSize, "msg"); + msg = a_Dpip_get_attr_l(Tok, conn->TokSize, "msg"); a_Chain_fcb(OpSend, conn->InfoRecv, msg, cmd); dFree(msg); } else if (strcmp(cmd, "chat") == 0) { - msg = a_Dpip_get_attr(Tok, conn->TokSize, "msg"); + msg = a_Dpip_get_attr_l(Tok, conn->TokSize, "msg"); a_Chain_fcb(OpSend, conn->InfoRecv, msg, cmd); dFree(msg); @@ -238,13 +238,13 @@ static void Dpi_parse_token(dpi_conn_t *conn) } else if (strcmp(cmd, "start_send_page") == 0) { conn->Send2EOF = 1; - urlstr = a_Dpip_get_attr(Tok, conn->TokSize, "url"); + urlstr = a_Dpip_get_attr_l(Tok, conn->TokSize, "url"); a_Chain_fcb(OpSend, conn->InfoRecv, urlstr, cmd); dFree(urlstr); - /* TODO: a_Dpip_get_attr(Tok, conn->TokSize, "send_mode") */ + /* TODO: a_Dpip_get_attr_l(Tok, conn->TokSize, "send_mode") */ } else if (strcmp(cmd, "reload_request") == 0) { - urlstr = a_Dpip_get_attr(Tok, conn->TokSize, "url"); + urlstr = a_Dpip_get_attr_l(Tok, conn->TokSize, "url"); a_Chain_fcb(OpSend, conn->InfoRecv, urlstr, cmd); dFree(urlstr); } @@ -531,9 +531,9 @@ static char *Dpi_get_server_uds_name(const char *server_name) /* Parse reply */ if (rdlen == 0 && rply) { - cmd = a_Dpip_get_attr(rply, (int)strlen(rply), "cmd"); + cmd = a_Dpip_get_attr(rply, "cmd"); if (strcmp(cmd, "send_data") == 0) - server_uds_name = a_Dpip_get_attr(rply, (int)strlen(rply), "msg"); + server_uds_name = a_Dpip_get_attr(rply, "msg"); dFree(cmd); dFree(rply); } diff --git a/src/cookies.c b/src/cookies.c index 745614ca..8c482cbc 100644 --- a/src/cookies.c +++ b/src/cookies.c @@ -207,7 +207,7 @@ char *a_Cookies_get_query(const DilloUrl *request_url) query = dStrdup("Cookie2: $Version=\"1\"\r\n"); if (dpip_tag != NULL) { - char *cookie = a_Dpip_get_attr(dpip_tag, strlen(dpip_tag), "cookie"); + char *cookie = a_Dpip_get_attr(dpip_tag, "cookie"); char *old_query = query; query = dStrconcat(old_query, cookie, NULL); dFree(old_query); diff --git a/src/dpiapi.c b/src/dpiapi.c index 705d6777..2068146c 100644 --- a/src/dpiapi.c +++ b/src/dpiapi.c @@ -61,12 +61,12 @@ void a_Dpiapi_dialog(BrowserWindow *bw, char *server, char *dpip_tag) /* other options can be parsed the same way */ dpip_tag_len = strlen(dpip_tag); - question = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "msg"); - alt1 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt1"); - alt2 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt2"); - alt3 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt3"); - alt4 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt4"); - alt5 = a_Dpip_get_attr(dpip_tag, dpip_tag_len, "alt5"); + question = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "msg"); + alt1 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt1"); + alt2 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt2"); + alt3 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt3"); + alt4 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt4"); + alt5 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt5"); ret = a_Dialog_choice5(question, alt1, alt2, alt3, alt4, alt5); /* As choice5 is modal, call the callback function directly. */ |