On Thu, Aug 28, 2014 at 03:21:09PM +0200, Pino Toscano wrote:
/* Edit it. */
- /* XXX Safe? */
- snprintf (buf, sizeof buf, "%s %s", editor, filename);
+ if (asprintf (&cmd, "%s %s", editor, tmpfilename) == -1) {
filename -> tmpfilename. Is that right?
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top