X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..375d9478a5b6b14bfb5f6e1a054e900a18e40717:/lib/regsub.c
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)