--- Comment #5 from egmont at uhulinux dot hu 2006-02-08 11:21 ---
Shame on me... I spent some hours debugging the problem but didn't realize
that I'm always continuously mixing strcpy and strcat, I just thought the
other one was used there. You're perfectly right, thanks very much and s
--- Comment #4 from rguenth at gcc dot gnu dot org 2006-02-08 11:07 ---
/* copy to last_login */
last_login.ll_host[0] = '\0';
^
this should probably be ll_line. You'll just get uninitialized stack garbage
at -O0.
fprintf(stderr, "tl = %s\n", terminal_lin
--- Comment #3 from egmont at uhulinux dot hu 2006-02-08 11:03 ---
sorry, there's a typo. s/strncpy/strncat/
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26172
--- Comment #2 from egmont at uhulinux dot hu 2006-02-08 10:58 ---
Created an attachment (id=10801)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10801&action=view)
preproecessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26172
--- Comment #1 from egmont at uhulinux dot hu 2006-02-08 10:58 ---
Created an attachment (id=10800)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10800&action=view)
pam_lastlog.c with two extra fprintf's inserted (search for "GCC BUG" to find
them)
--
http://gcc.gnu.org/bugzil