This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sched-vis: prevent visual_tbl overflow


On Dec  5, 2000, Richard Henderson <rth@redhat.com> wrote:

> On Tue, Dec 05, 2000 at 07:49:20PM -0200, Alexandre Oliva wrote:
>> +  sprintf (visual_tbl + strlen (visual_tbl), "%s", prefix);

> Please don't use sprintf in place of strcpy.

I suppose I should also remove the uses of sprintf to append `.'s to
the string and use memset instead?  Ok, will do.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]