[Bug libobjc/9751] malloc of strlen, not strlen+1

ayers at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 24 23:37:00 GMT 2006



------- Comment #6 from ayers at gcc dot gnu dot org  2006-01-24 23:37 -------
Subject: Bug 9751

Author: ayers
Date: Tue Jan 24 23:37:24 2006
New Revision: 110187

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110187
Log:
2006-01-24  David Ayers  <d.ayers@inode.at>

        PR libobjc/9751
        * gc.c (class_ivar_set_gcinvisible): Replace strncpy with memcpy
        and insure the new strings are '\0' termintated.


Modified:
    trunk/libobjc/ChangeLog
    trunk/libobjc/gc.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9751



More information about the Gcc-bugs mailing list