From: Art Cancro Date: Sat, 3 Aug 2002 04:24:06 +0000 (+0000) Subject: * blah X-Git-Tag: v7.86~6318 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=7e541db53b01413606a238820ba39612c4c5c0a9;p=citadel.git * blah --- diff --git a/citadel/citadel_ipc.c b/citadel/citadel_ipc.c index a0ac55bde..391649ff0 100644 --- a/citadel/citadel_ipc.c +++ b/citadel/citadel_ipc.c @@ -1972,8 +1972,7 @@ int CtdlIPCGenericCommand(const char *command, const char *to_send, if (proto_response[3] == '*') express_msgs = 1; ret = atoi(proto_response); - memmove(proto_response, &proto_response[4], - strlen(proto_response) - 3); + strcpy(proto_response, &proto_response[4]); switch (ret / 100) { default: /* Unknown, punt */ case 2: /* OK */ @@ -2002,7 +2001,8 @@ int CtdlIPCGenericCommand(const char *command, const char *to_send, if (to_receive && !*to_receive && bytes_to_receive) { *bytes_to_receive = extract_long(proto_response, 0); - *to_receive = (char *)malloc(*bytes_to_receive); + *to_receive = (char *) + malloc((size_t)*bytes_to_receive); if (!*to_receive) { ret = -1; } else {