Dan Smith wrote:
JG> That was my original assumption as well, but the asprintf()
man
JG> page says: "If memory allocation wasn’t possible, or some other
JG> error occurs, these functions will return -1, and the contents of
JG> strp is undefined."
JG> That "undefined" bit made me all paranoid and I really hate
JG> segfaults so I figured better safe than sorry.
...but you're not passing dev_id to the asprintf()... :)
Sigh...
--
-Jay