* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
," -f use tigetnum rather than <term.h> mapping"
," -m SIZE set margin (default: 2)"
," -s MSECS delay 1% of the time (default: 1 msecs)"
," -f use tigetnum rather than <term.h> mapping"
," -m SIZE set margin (default: 2)"
," -s MSECS delay 1% of the time (default: 1 msecs)"
- putenv(strcat(strcpy(malloc(6 + strlen(optarg)), "TERM="), optarg));
+ need = 6 + strlen(optarg);
+ my_env = malloc(need);
+ _nc_SPRINTF(my_env, _nc_SLIMIT(need) "TERM=%s", optarg);
+ putenv(my_env);