Created attachment 224722 [details] patch
This looks sane to me, but I didn't try the proposed patch. I no longer use this software (as I no longer work on the software that used log4cplus). Please feel free to remove me as any maintainer for it. Thank you for the patch.
*** This bug has been marked as a duplicate of bug 272356 ***