diff options
author | Michael Scott <michael.scott@linaro.org> | 2017-01-23 14:57:27 -0800 |
---|---|---|
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2017-02-03 15:59:16 +0200 |
commit | 359ef02bdf2557372a8884177142ca039a2bd2c0 (patch) | |
tree | a41642c03b1620f8286661e2dc5b2ef5ce492646 /samples | |
parent | 267cbd94698e2a5430efa45ef0990ddffdfe70c3 (diff) |
samples: net: irc_bot: expand some char buffers
Making a bit more room in these buffers. Some were not big enough
in certain cases, while others needed more room in general.
Change-Id: I47a4bb8c6635305f55dee323f7293b2e4cbed55a
Signed-off-by: Michael Scott <michael.scott@linaro.org>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/net/irc_bot/src/irc-bot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/net/irc_bot/src/irc-bot.c b/samples/net/irc_bot/src/irc-bot.c index 4c38f0420..8683a274f 100644 --- a/samples/net/irc_bot/src/irc-bot.c +++ b/samples/net/irc_bot/src/irc-bot.c @@ -295,7 +295,7 @@ zirc_nick_set(struct zirc *irc, const char *nick) static int zirc_user_set(struct zirc *irc, const char *user, const char *realname) { - char buffer[32]; + char buffer[64]; int ret; NET_INFO("Setting user to: %s, real name to: %s", user, realname); @@ -492,7 +492,7 @@ zirc_disconnect(struct zirc *irc) static int zirc_chan_send_msg(const struct zirc_chan *chan, const char *msg) { - char buffer[80]; + char buffer[128]; NET_INFO("Sending to channel %s: %s", chan->chan, msg); @@ -540,7 +540,7 @@ on_cmd_hello(struct zirc_chan *chan, const char *nick, const char *msg) static void on_cmd_random(struct zirc_chan *chan, const char *nick, const char *msg) { - char buf[3 * sizeof(int) + 40]; + char buf[128]; int32_t num = sys_rand32_get(); int ret; |