don't use sprintf. It's not guaranteed to not scribble over memory.
authorNathan Binkert <binkertn@umich.edu>
Tue, 23 Aug 2005 15:38:27 +0000 (11:38 -0400)
committerNathan Binkert <binkertn@umich.edu>
Tue, 23 Aug 2005 15:38:27 +0000 (11:38 -0400)
commit1771ee203fd749b21a51439cde853f7134688f30
tree830f4e123bdc1a6538cbe307085b29fca55046ef
parent03e256b0f004bfe1dbe4006878b4479f25484b74
don't use sprintf.  It's not guaranteed to not scribble over memory.

base/remote_gdb.cc:
    use snprintf, it's safer
dev/ide_disk.cc:
    use strncpy instead of snprintf

--HG--
extra : convert_revision : 90455e3f6bcb4c771724298a5a0b79a5b483a85c
base/remote_gdb.cc
dev/ide_disk.cc