dgaudet 98/04/29 16:46:03
Modified: src/modules/standard mod_log_config.c
Log:
don't call strlen twice with the same arg
Revision Changes Path
1.55 +3 -1 apache-1.3/src/modules/standard/mod_log_config.c
Index: mod_log_config.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_log_config.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- mod_log_config.c 1998/04/27 06:59:36 1.54
+++ mod_log_config.c 1998/04/29 23:46:03 1.55
@@ -379,13 +379,15 @@
}
else { /* CLF format */
char sign = (timz < 0 ? '-' : '+');
+ size_t l;
if (timz < 0) {
timz = -timz;
}
strftime(tstr, MAX_STRING_LEN, "[%d/%b/%Y:%H:%M:%S ", t);
- ap_snprintf(tstr + strlen(tstr), sizeof(tstr) - strlen(tstr),
+ l = strlen(tstr);
+ ap_snprintf(tstr + l, sizeof(tstr) - l,
"%c%.2d%.2d]", sign, timz / 60, timz % 60);
}