On Tuesday 17 June 2008 21:06:58 Geoffrey Broadwell wrote:

>   Index: src/dynext.c
> ===================================================================
> --- src/dynext.c        (revision 28459)
> +++ src/dynext.c        (working copy)
> @@ -276,12 +276,10 @@
>      /* And on cygwin replace a leading "lib" by "cyg". */
>  #ifdef __CYGWIN__
>      if (!STRING_IS_EMPTY(lib) && memcmp(lib->strstart, "lib", 3) == 0) {
> -        strcpy(path->strstart, lib->strstart);
> +        path = string_append(interp,
> +            string_from_cstring(interp, "cyg", 3),
> +            string_substr(interp, lib, 3, lib->strlen - 3, NULL, 0));

That string_from_cstring could almost probably be CONST_STRING.  If we can 
swing that, it's usually much better.

-- c

Reply via email to