Gregory Hayes wrote:
> 
> Problem found for hpux on config file parsing, FILENAME_MAX is the size
> of the string for the lines read in from the config file.
> 
> loadcfg.c
> --------------------------------------------------
> void LoadConfig(char *file)
> {
>    FILE *f;
>    char s[FILENAME_MAX];
>    char ss[FILENAME_MAX];
>    char s1[256],s2[256],s3[256];
> --------------------------------------------------
>
> As you can see below on linux that is 4095 bytes on solaris 1024 bytes
> and on hpux only 14 bytes
> 
> for linux
> /usr/include/stdio_lim.h:#define FILENAME_MAX 4095
> for hpux
> /usr/include/stdio.h:#  define FILENAME_MAX     14
> for solaris
> /usr/include/stdio.h:#define    FILENAME_MAX    1024
> 
> FILENAME_MAX is also used many other places in the code
> 
[snip grep output] 
> suggest either a redefine of FILENAME_MAX on hpux or use of a differant
> constant

s and ss (in the example above) should be used in the generation 
of the path to the theme, and should probably use the constant 
PATH_MAX, instead.  However, 0.13.x is dead code at this point,
so is that something that can be worked in for 0.14?

-- ebm
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
|  __                         a.k.a. Eric B. Mitchell |
|  |_) .  _  _|      _|  _     [EMAIL PROTECTED]  |
|  | \ ( (_ (_| (_| (_| (/_   www.netcom.com/~ericmit |
| How's My Programming?   Call:  1 - 800 - DEV - NULL |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
-
To unsubscribe from this list send mail to: [EMAIL PROTECTED]
with the message contents: unsubscribe e-develop

Reply via email to