------- Comment #1 from truedfx at gentoo dot org 2010-01-02 20:26 ------- The buffer should be at least PATH_MAX bytes. If PATH_MAX > 1024, then 1024 bytes need not be enough. But anyway, realpath() comes from glibc, so even if this is a bug, you're reporting it to the wrong folks.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42582