@unperrier

According to the manpage snprintf returns a negative value, not necessarily -1 so it should check for "res < 0" instead.

@jimmyloyola4088

Best programming channel on YT

@mykolamorozov2099

In some cases, that might be a security risk to let users ability to change that behavior. Just to keep in mind.

@anon_y_mousse

This is why I don't use immutable distros of Linux. If it's your system you should be able to modify it. Of course, this is somewhere around reason 100 not to use a Mac. Fun fact, did you know that there is no setenv() in the C standard? It makes sense from a safety and security perspective, but doesn't actually work in theory because your home directory is nearly always modifiable by whatever program you run and they could just as easily edit your shell's configuration file to add to the environment anyway. Although, I still wouldn't propose adding a setenv() to the standard, and instead I'd suggest that maybe we should run all untrusted software in a sandbox.

I don't know why I bother leaving comments like these because most of the time people don't read them, and the rest of the time they misread them, but hopefully they help the channel in the algorithm anyway.

@aadishm4793

Awesome🎉

@Aastelll

Are you originally swiss?

@lack_of_awareness

environment variables atleast on linux are not multi-thread safe

@JustinCromer

Darn. I guess my first real lab contribution finally broke :(