diff options
-rw-r--r-- | FICS/talkproc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c index 9d5dac2..0a0a60f 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -904,11 +904,13 @@ PUBLIC int com_qtell(int p, param_list param) return COM_OK; } -PUBLIC int on_channel(int ch, int p) +PUBLIC int +on_channel(int ch, int p) { - char tmp[10]; /* 9 digits ought to be enough :) */ + char tmp[20]; - sprintf (tmp,"%d",ch); - return in_list(p, L_CHANNEL,tmp ); /* since needs ch converted to a string keep - hidden from view */ + snprintf(tmp, sizeof tmp, "%d", ch); + return in_list(p, L_CHANNEL, tmp); // since needs 'ch' converted + // to a string keep hidden from + // view } |