ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_kline.c
(Generate patch)

Comparing ircd-hybrid-8/modules/m_kline.c (file contents):
Revision 1232 by michael, Thu Sep 22 19:41:19 2011 UTC vs.
Revision 1233 by michael, Thu Sep 22 20:53:07 2011 UTC

# Line 134 | Line 134 | mo_kline(struct Client *client_p, struct
134  
135    if (tkline_time != 0)
136    {
137 <    ircsprintf(buffer, "Temporary K-line %d min. - %s (%s)",
138 <               (int)(tkline_time/60), reason, current_date);
137 >    snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %s (%s)",
138 >             (int)(tkline_time/60), reason, current_date);
139      DupString(aconf->reason, buffer);
140  
141      if (oper_reason != NULL)
# Line 144 | Line 144 | mo_kline(struct Client *client_p, struct
144    }
145    else
146    {
147 <    ircsprintf(buffer, "%s (%s)", reason, current_date);
147 >    snprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date);
148      DupString(aconf->reason, buffer);
149  
150      if (oper_reason != NULL)
# Line 197 | Line 197 | me_kline(struct Client *client_p, struct
197  
198      if (tkline_time != 0)
199      {
200 <      ircsprintf(buffer, "Temporary K-line %d min. - %s (%s)",
201 <                 (int)(tkline_time/60), kreason, current_date);
200 >      snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %s (%s)",
201 >               (int)(tkline_time/60), kreason, current_date);
202        DupString(aconf->reason, buffer);
203  
204        if (oper_reason != NULL)
# Line 207 | Line 207 | me_kline(struct Client *client_p, struct
207      }
208      else
209      {
210 <      ircsprintf(buffer, "%s (%s)", kreason, current_date);
210 >      snprintf(buffer, sizeof(buffer), "%s (%s)", kreason, current_date);
211        DupString(aconf->reason, buffer);
212  
213        if (oper_reason != NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines