Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libcfnet/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Seq *ProtocolOpenDir(AgentConnection *conn, const char *path)
assert(conn != NULL);
assert(path != NULL);

char buf[CF_MSGSIZE] = {0};
char buf[CF_BUFSIZE] = {0};
int tosend = snprintf(buf, CF_MSGSIZE, "OPENDIR %s", path);
if (tosend < 0 || tosend >= CF_MSGSIZE)
{
Expand Down Expand Up @@ -110,7 +110,7 @@ bool ProtocolGet(AgentConnection *conn, const char *remote_path,
return false;
}

char buf[CF_MSGSIZE] = {0};
char buf[CF_BUFSIZE] = {0};
int to_send = snprintf(buf, CF_MSGSIZE, "GET %d %s",
CF_MSGSIZE, remote_path);

Expand Down