This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libobjc/9751] malloc of strlen, not strlen+1
- From: "ayers at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2006 23:37:29 -0000
- Subject: [Bug libobjc/9751] malloc of strlen, not strlen+1
- References: <bug-9751-4081@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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