[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems on solaris 2.7 with global 4.1
From: |
Shigio Yamaguchi |
Subject: |
Re: Problems on solaris 2.7 with global 4.1 |
Date: |
Sat, 28 Jul 2001 03:47:41 +0900 |
> I think it might be some problem in strbuf_xxx because if you do
>
> #if 0
> STRBUF *env = strbuf_open(0);
>
> strbuf_puts(env, "GTAGSDBPATH=");
> strbuf_puts(env, dbpath);
> putenv(strbuf_value(env));
> strbuf_close(env);
> #else
> char *env;
> env = malloc (256);
> sprintf (env, "%s=%s", "GTAGSDBPATH", dbpath);
> putenv (env); /*putenv now owns the malloc'd memory */
> #endif
>
> it seems to work.
Now, I understand how putenv(3) works.
I have fixed the bug in CVS version.
(http://www.tamacom.com/global/download.html)
Thank you!
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)