diff options
| author | Manolo Gouy <Manolo> | 2017-10-31 16:56:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-10-31 16:56:23 +0000 |
| commit | 839f52bc18dda4ce96b87c630c935d559e3bcb60 (patch) | |
| tree | 9bdf7a1ff422f57aa380776bb871549df6fda832 /examples/howto-simple-svg.cxx | |
| parent | b1cff66e86566bbed8897b0edb9873b93ccbc08b (diff) | |
Fix for STR#3421: Fl_SVG_Image crashes if passed an svg file that is a static const char* string
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/howto-simple-svg.cxx')
| -rw-r--r-- | examples/howto-simple-svg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/howto-simple-svg.cxx b/examples/howto-simple-svg.cxx index 6b7c6bc11..b9f41fd71 100644 --- a/examples/howto-simple-svg.cxx +++ b/examples/howto-simple-svg.cxx @@ -59,7 +59,7 @@ int main(int argc, char **argv) { fl_message("You need to build fltk with --enable-nanosvg to use this example."); return(1); #else - Fl_SVG_Image *svg = new Fl_SVG_Image(NULL, (char*)strdup(svg_logo)); // XXX: strdup() shouldn't be needed -- see STR #3421 + Fl_SVG_Image *svg = new Fl_SVG_Image(NULL, svg_logo); Fl_Window *win = new Fl_Window(720, 486, "svg test"); Fl_Box *box = new Fl_Box(10,10,720-20,486-20); box->image(svg); |
