public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: jturney@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.874-26-gf2a16af
Date: Thu, 01 Sep 2016 13:38:00 -0000	[thread overview]
Message-ID: <20160901133812.1893.qmail@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=f2a16aff20f2fe58ab9cad651e2b94916a0a773b

commit f2a16aff20f2fe58ab9cad651e2b94916a0a773b
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Thu Sep 1 13:45:59 2016 +0100

    Fix scope problem with the FileInUse dialog
    
    The std::string we make for dlg_data.msg must remain in scope while the
    FileInUse modal dialog is shown.
    
    Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>


Diff:
---
 install.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/install.cc b/install.cc
index 8aad3a5..277737d 100644
--- a/install.cc
+++ b/install.cc
@@ -530,7 +530,8 @@ Installer::installOne (packagemeta &pkgm, const packageversion &ver,
                             // listed processes, or just ignore the problem and schedule the file to be
                             // replaced after a reboot
                             FileInuseDlgData dlg_data;
-                            dlg_data.msg = ("Unable to extract /" + fn).c_str ();
+                            std::string msg = "Unable to extract /" + fn;
+                            dlg_data.msg = msg.c_str ();
                             dlg_data.processlist = plm.c_str ();
                             dlg_data.iteration = iteration;
 


                 reply	other threads:[~2016-09-01 13:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160901133812.1893.qmail@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).