diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-01-19 11:14:28 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-01-26 15:50:54 +0100 |
commit | 0ff0fad23d3693ecf7a0c462cdb48f0e60f93808 (patch) | |
tree | adc7766f25c5ff425fc63f3e89e5f5ef084ce8ae /include/qapi/qmp/json-streamer.h | |
parent | 3db34bf64ab4f8797565dd8750003156c32b301d (diff) | |
download | qemu-0ff0fad23d3693ecf7a0c462cdb48f0e60f93808.zip qemu-0ff0fad23d3693ecf7a0c462cdb48f0e60f93808.tar.gz qemu-0ff0fad23d3693ecf7a0c462cdb48f0e60f93808.tar.bz2 |
char: remove fixed length filename allocation
A variety of places were snprintf()ing into a fixed length
filename buffer. Some of the buffers were stack allocated,
while another was heap allocated with g_malloc(). Switch
them all to heap allocated using g_strdup_printf() avoiding
arbitrary length restrictions.
This also facilitates later patches which will want to
populate the filename by calling external functions
which do not support use of a pre-allocated buffer.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1453202071-10289-2-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qapi/qmp/json-streamer.h')
0 files changed, 0 insertions, 0 deletions