summaryrefslogtreecommitdiff
path: root/dpid
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-07-17 19:19:35 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-07-17 19:19:35 -0400
commit2ee5e732c456c722b1456bdbc8b203098681b4de (patch)
treeb71550eb13832ea37d3a5a5ae52b6990b28f2da2 /dpid
parentd53595dd6d4a1d6431aa8d439c63e30cb27525a0 (diff)
Added a_Dpip_get_attr_l() to DPIP's API
Diffstat (limited to 'dpid')
-rw-r--r--dpid/dpid.c2
-rw-r--r--dpid/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/dpid/dpid.c b/dpid/dpid.c
index 45324730..8d325694 100644
--- a/dpid/dpid.c
+++ b/dpid/dpid.c
@@ -859,7 +859,7 @@ char *get_message(int sock, char *dpi_tag)
{
char *msg, *d_cmd;
- msg = a_Dpip_get_attr(dpi_tag, strlen(dpi_tag), "msg");
+ msg = a_Dpip_get_attr(dpi_tag, "msg");
if (msg == NULL) {
ERRMSG("get_message", "failed to parse msg", 0);
d_cmd = a_Dpip_build_cmd("cmd=%s msg=%s",
diff --git a/dpid/main.c b/dpid/main.c
index 969ef690..7ecae76a 100644
--- a/dpid/main.c
+++ b/dpid/main.c
@@ -155,7 +155,7 @@ static int get_command(int sock, char *dpi_tag)
return (-1);
}
- cmd = a_Dpip_get_attr(dpi_tag, strlen(dpi_tag), "cmd");
+ cmd = a_Dpip_get_attr(dpi_tag, "cmd");
if (cmd == NULL) {
ERRMSG("get_command", "a_Dpip_get_attr", 0);