Imported Debian patch 2.5.1p3-2
[debian/amanda] / regex-src / debug.c
index d4736827d79289b02b80a32af32446ad8338605f..3663b7539e1c1a37b36c323d46daacac2f0a8713 100644 (file)
@@ -1,9 +1,4 @@
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
-#include <limits.h>
-#include <stdlib.h>
-#include <sys/types.h>
+#include "amanda.h"
 #include <regex.h>
 
 #include "utils.h"
@@ -235,8 +230,8 @@ int ch;
        static char buf[10];
 
        if (isprint(ch) || ch == ' ')
-               ap_snprintf(buf, sizeof(buf), "%c", ch);
+               snprintf(buf, SIZEOF(buf), "%c", ch);
        else
-               ap_snprintf(buf, sizeof(buf), "\\%o", ch);
+               snprintf(buf, SIZEOF(buf), "\\%o", ch);
        return(buf);
 }