218 |
conf->user = xstrdup(user); |
conf->user = xstrdup(user); |
219 |
|
|
220 |
if (tkline_time) |
if (tkline_time) |
221 |
snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %s (%s)", |
snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %.*s (%s)", |
222 |
(int)(tkline_time/60), reason, current_date); |
(int)(tkline_time/60), REASONLEN, reason, current_date); |
223 |
else |
else |
224 |
snprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date); |
snprintf(buffer, sizeof(buffer), "%.*s (%s)", REASONLEN, reason, current_date); |
225 |
|
|
226 |
conf->reason = xstrdup(buffer); |
conf->reason = xstrdup(buffer); |
227 |
m_kline_add_kline(source_p, conf, tkline_time); |
m_kline_add_kline(source_p, conf, tkline_time); |
264 |
conf->user = xstrdup(kuser); |
conf->user = xstrdup(kuser); |
265 |
|
|
266 |
if (tkline_time) |
if (tkline_time) |
267 |
snprintf(buffer, sizeof(buffer), "Temporary K-line %u min. - %s (%s)", |
snprintf(buffer, sizeof(buffer), "Temporary K-line %u min. - %.*s (%s)", |
268 |
(unsigned int)(tkline_time/60), kreason, current_date); |
(unsigned int)(tkline_time/60), REASONLEN, kreason, current_date); |
269 |
else |
else |
270 |
snprintf(buffer, sizeof(buffer), "%s (%s)", kreason, current_date); |
snprintf(buffer, sizeof(buffer), "%.*s (%s)", REASONLEN, kreason, current_date); |
271 |
|
|
272 |
conf->reason = xstrdup(buffer); |
conf->reason = xstrdup(buffer); |
273 |
m_kline_add_kline(source_p, conf, tkline_time); |
m_kline_add_kline(source_p, conf, tkline_time); |