Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

*------------------*

* Version    2.3.c *
*------------------*
 --------------------------------------------
 04/12/30 orc@downbelow.pell.portland.or.us 1.78
 args.c.in:
   Use %s instead of %x
 VERSION:
   up to 2.3.c (tiny change for new extra-broken gccisms)
 args.c.in:
   Don't use token pasting to build putenv("foo="), because
   it turns out that new versions of gcc are stupidly
   broken and won't do token pasting anymore
 --------------------------------------------
  • Loading branch information...
commit feb2a3d28c33f1f139f551baea7794cf0c61cb5c 1 parent 3a27f97
David Parsons authored
Showing with 9 additions and 2 deletions.
  1. +1 −1  VERSION
  2. +8 −1 args.c.in
View
2  VERSION
@@ -1 +1 @@
-2.3.b
+2.3.c
View
9 args.c.in
@@ -78,7 +78,14 @@ extern void showopts(FILE*, int, struct x_option*);
#ifdef HAVE_UNSETENV
#define UNSET(x) unsetenv(x)
#else
-#define UNSET(x) putenv(x ## "=")
+void
+UNSET(char *x)
+{
+ char *p = malloc(strlen(x) + 2);
+
+ sprintf(p, "%s=", x);
+ putenv(p);
+}
#endif
#ifdef HAVE_SETENV
Please sign in to comment.
Something went wrong with that request. Please try again.