Svante Signell, le Mon 14 Apr 2014 17:16:36 +0200, a écrit :
> -     memset(dfp, 0, sizeof(dfp));
> -     strncpy(dfp, efp, sizeof(dfp) - 1);

Why not simply using xdstrdup?

> +             dfp = tmp + 7;

> +     free(dfp);

Will obviously crash. Did you try your code at all?

Samuel


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
https://lists.debian.org/[email protected]

Reply via email to