/[svn]/ircd-hybrid/branches/8.2.x/modules/m_encap.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/modules/m_encap.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8247 by michael, Sun Apr 9 16:08:02 2017 UTC revision 8248 by michael, Mon May 15 17:19:19 2017 UTC
# Line 52  ms_encap(struct Client *source_p, int pa Line 52  ms_encap(struct Client *source_p, int pa
52    
53    for (i = 1; i < (unsigned int)parc - 1; ++i)    for (i = 1; i < (unsigned int)parc - 1; ++i)
54    {    {
55      len = strlen(parv[i]) + 1;      len = strlen(parv[i]) + 1;  /* +1 for ':' */
56    
57        /* Drop the whole command if the last parameter would be truncated */
58      if ((cur_len + len) >= sizeof(buffer))      if ((cur_len + len) >= sizeof(buffer))
59        return 0;        return 0;
60    

Legend:
Removed from v.8247  
changed lines
  Added in v.8248

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28