apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <brian.p...@cnet.com>
Subject Re: [PATCH] lack of giga[G] in apr_strfsize()
Date Wed, 08 May 2002 05:24:37 GMT
Thanks!  I just committed the fix.
--Brian

Matsuzaki Yoshinobu wrote:

>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