I rushed… it seems that
strcpy(tokens[i], getenv("HOME"));
turned out to be a bad idea—getenv("HOME")
can be longer than tokens[i]
, which could mess up memory. All fixed now, though—it’s working fine.
I rushed… it seems that
strcpy(tokens[i], getenv("HOME"));
turned out to be a bad idea—getenv("HOME")
can be longer than tokens[i]
, which could mess up memory. All fixed now, though—it’s working fine.