From: robertlipe Date: Tue, 12 Feb 2013 01:28:38 +0000 (+0000) Subject: Correct over-aggressive xstrdup removal. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~651 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b2056438d46ce27a3ccd9ba614de7832d6a55cc9;p=gpsbabel.git Correct over-aggressive xstrdup removal. --- diff --git a/gpsbabel/gbfile.cc b/gpsbabel/gbfile.cc index a021320b5..d0abd48cd 100644 --- a/gpsbabel/gbfile.cc +++ b/gpsbabel/gbfile.cc @@ -1256,7 +1256,7 @@ gbfputpstr(const char* s, gbfile* file) int gbfputpstr(const QString s, gbfile* file) { - const char *t = s.toUtf8().data(); + const char *t = xstrdup(s.toUtf8().data()); int r = gbfputpstr(t, file); xfree(t); return r;