On Sunday 06 March 2016 23:08:59 Richard W.M. Jones wrote: > --- > src/inspect-fs-windows.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c > index ba72727..5adf145 100644 > --- a/src/inspect-fs-windows.c > +++ b/src/inspect-fs-windows.c > @@ -389,7 +389,7 @@ check_windows_system_registry (guestfs_h *g, struct > inspect_fs *fs) > int r; > size_t len = strlen (fs->windows_systemroot) + 64; > char system[len]; > - char gpt_prefix[] = "DMIO:ID:"; > + const char gpt_prefix[] = "DMIO:ID:";
This could even be static IMHO, so not even on stack but directly in the .rodata section. -- Pino Toscano
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs