From: Ben Hutchings Date: Sat, 12 Nov 2005 15:45:18 +0000 (+0000) Subject: Corrected length of background filename buffer. X-Git-Tag: 0.2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8d0ade32b10e040e462b244332afad1a0961d25b;p=videolink.git Corrected length of background filename buffer. Worked around bogus error generated by imglib2. --- diff --git a/webdvd.cpp b/webdvd.cpp index 8e586e2..4d951ee 100644 --- a/webdvd.cpp +++ b/webdvd.cpp @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -247,7 +248,10 @@ namespace try { - check(status); + // Check whether the load was successful, ignoring this + // pseudo-error. + if (status != NS_IMAGELIB_ERROR_LOAD_ABORTED) + check(status); nsCOMPtr browser( browser_widget_.get_browser()); @@ -294,7 +298,7 @@ namespace void WebDvdWindow::save_screenshot() { - char filename[20]; + char filename[25]; std::sprintf(filename, "page_%06d_back.png", page_links_.size()); Glib::RefPtr window(get_window()); assert(window);