X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..d64e1d92acaf5a00908f630848f1f308574847ea:/lib/regsub.c?ds=sidebyside
diff --git a/lib/regsub.c b/lib/regsub.c
index aab20e2..1b7cad4 100644
--- a/lib/regsub.c
+++ b/lib/regsub.c
@@ -15,7 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
+/** @file lib/regsub.c
+ * @brief Regexp substitution
+ */
#include "common.h"
#include
@@ -141,7 +143,7 @@ const char *regsub(const pcre *re, const char *subject, const char *replace,
break;
}
if(rc <= 0 && rc != PCRE_ERROR_NOMATCH) {
- error(0, "pcre_exec returned %d, subject '%s'", rc, subject);
+ disorder_error(0, "pcre_exec returned %d, subject '%s'", rc, subject);
return 0;
}
if((flags & REGSUB_MUST_MATCH) && matches == 0)