diff options
| author | Daniel P. Berrange | 2016-01-19 12:14:28 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2016-01-26 15:50:54 +0100 |
| commit | 0ff0fad23d3693ecf7a0c462cdb48f0e60f93808 (patch) | |
| tree | adc7766f25c5ff425fc63f3e89e5f5ef084ce8ae /qapi-schema.json | |
| parent | Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' in... (diff) | |
| download | qemu-0ff0fad23d3693ecf7a0c462cdb48f0e60f93808.tar.gz qemu-0ff0fad23d3693ecf7a0c462cdb48f0e60f93808.tar.xz qemu-0ff0fad23d3693ecf7a0c462cdb48f0e60f93808.zip | |
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 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions
