From 81c5377fb36f2a83c8a93ba80df7a47ae7e21e35 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 3 Aug 2017 09:20:07 -0400 Subject: [PATCH] 2017-08-03 Fred Gleason * Increased the length of the 'Formats=' parameter in the 'rlm_filewrite' RLM from 256 to 8192 characters. --- ChangeLog | 3 +++ rlm/rlm_filewrite.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d1c14e0..010ad81d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15924,3 +15924,6 @@ 'web/rdxport/rdxport.cpp'. 2017-08-03 Fred Gleason * Added an 'rlm_urlwrite' RLM in 'rlm/rlm_urlwrite.c'. +2017-08-03 Fred Gleason + * Increased the length of the 'Formats=' parameter in the + 'rlm_filewrite' RLM from 256 to 8192 characters. diff --git a/rlm/rlm_filewrite.c b/rlm/rlm_filewrite.c index d3c02841..9803c285 100644 --- a/rlm/rlm_filewrite.c +++ b/rlm/rlm_filewrite.c @@ -132,9 +132,9 @@ void rlm_filewrite_RLMStart(void *ptr,const char *arg) (rlm_filewrite_devs+1)*sizeof(int)); rlm_filewrite_appends[rlm_filewrite_devs]= RLMGetIntegerValue(ptr,arg,section,"Append",0); - rlm_filewrite_formats=realloc(rlm_filewrite_formats,(rlm_filewrite_devs+1)*256); - strncpy(rlm_filewrite_formats+256*rlm_filewrite_devs, - RLMGetStringValue(ptr,arg,section,"FormatString",""),256); + rlm_filewrite_formats=realloc(rlm_filewrite_formats,(rlm_filewrite_devs+1)*8192); + strncpy(rlm_filewrite_formats+8192*rlm_filewrite_devs, + RLMGetStringValue(ptr,arg,section,"FormatString",""),8192); rlm_filewrite_masters=realloc(rlm_filewrite_masters, (rlm_filewrite_devs+1)*sizeof(int)); rlm_filewrite_masters[rlm_filewrite_devs]= @@ -202,7 +202,7 @@ void rlm_filewrite_RLMPadDataSent(void *ptr,const struct rlm_svc *svc, } if((flag==1)||((flag==2)&&(log->log_onair!=0))) { strncpy(str,RLMResolveNowNextEncoded(ptr,now,next, - rlm_filewrite_formats+256*i, + rlm_filewrite_formats+8192*i, rlm_filewrite_encodings[i]),8192); rlm_filewrite_ProcessString(str); if(rlm_filewrite_appends[i]==0) {