aboutsummaryrefslogtreecommitdiff
path: root/linux-user/linux_loop.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-01-19 11:14:28 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2016-01-26 15:50:54 +0100
commit0ff0fad23d3693ecf7a0c462cdb48f0e60f93808 (patch)
treeadc7766f25c5ff425fc63f3e89e5f5ef084ce8ae /linux-user/linux_loop.h
parent3db34bf64ab4f8797565dd8750003156c32b301d (diff)
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 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions