apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matsuzaki Yoshinobu <...@iij.ad.jp>
Subject [PATCH] lack of giga[G] in apr_strfsize()
Date Tue, 07 May 2002 18:48:49 GMT
In apr_strings.c, unit character as giga[G] is lost in apr_strfsize().
So, apr_strfsize() returns wrong value if over Giga-unit data applied.

--- apr_strings-old.c   Thu Mar 14 08:27:24 2002
+++ apr_strings.c       Wed May  8 02:33:06 2002
@@ -265,7 +265,7 @@

 APR_DECLARE(char *) apr_strfsize(apr_off_t size, char *buf)
 {
-    const char ord[] = "KMTPE";
+    const char ord[] = "KMGTPE";
     const char *o = ord;
     int remain;

thanks.
-----
Matsuzaki Yoshinobu <maz@iij.ad.jp> 
 - Internet Initiative Japan Inc.

Mime
View raw message