jfclere 01/04/24 03:46:41
Modified: lib iconv_module.c
Log:
Change the snprintf() into apr_snprintf().
Revision Changes Path
1.4 +3 -2 apr-iconv/lib/iconv_module.c
Index: iconv_module.c
===================================================================
RCS file: /home/cvs/apr-iconv/lib/iconv_module.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- iconv_module.c 2001/04/04 17:28:58 1.3
+++ iconv_module.c 2001/04/24 10:46:37 1.4
@@ -33,6 +33,7 @@
#include "apr_file_io.h"
#include "apr_pools.h"
#include "apr_dso.h"
+#include "apr_strings.h"
#include <string.h>
#include <stdlib.h>
@@ -44,7 +45,7 @@
{
struct stat sb;
- snprintf(buffer, APR_PATH_MAX, "%s/%s", dir, name);
+ apr_snprintf(buffer, APR_PATH_MAX, "%s/%s", dir, name);
return (stat(buffer, &sb) || ! S_ISREG(sb.st_mode)) ? EINVAL : 0;
}
@@ -56,7 +57,7 @@
if (tolower(name[0]) == 'x' && name[1] == '-')
name += 2;
- snprintf(buffer, sizeof(buffer), "%s.so", name);
+ apr_snprintf(buffer, sizeof(buffer), "%s.so", name);
ptr = buffer + strlen(buffer) - 4 - strlen(name);
while (* ++ptr)
*ptr = tolower(*ptr);