sched-vis: prevent visual_tbl overflow

Alexandre Oliva aoliva@redhat.com
Tue Dec 5 14:21:00 GMT 2000


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


More information about the Gcc-patches mailing list