diff --git a/data/license/deutsch.license b/data/license/deutsch.license index b21882463..a1ae108d3 100644 --- a/data/license/deutsch.license +++ b/data/license/deutsch.license @@ -1,16 +1,5 @@ -Dieses Programm ist freie Software. Sie können es unter den Bedingungen -der GNU General Public License, wie von der Free Software Foundation -veröffentlicht, weitergeben und/oder modifizieren, -entweder gemäß Version 2 der Lizenz -oder (nach Ihrer Option) jeder späteren Version. +Dieses Programm ist freie Software. Sie können es unter den Bedingungen der GNU General Public License, wie von der Free Software Foundation veröffentlicht, weitergeben und/oder modifizieren, entweder gemäß Version 2 der Lizenz oder (nach Ihrer Option) jeder späteren Version. -Die Veröffentlichung dieses Programms erfolgt in der Hoffnung, -daß es Ihnen von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE, -sogar ohne die implizite Garantie der -MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. -Details finden Sie in der GNU General Public License. +Die Veröffentlichung dieses Programms erfolgt in der Hoffnung, daß es Ihnen von Nutzen sein wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die implizite Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License. -Sie sollten ein Exemplar der GNU General Public License zusammen -mit diesem Programm erhalten haben. Falls nicht, schreiben Sie an -die Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, -Boston, MA 02110, USA. +Sie sollten ein Exemplar der GNU General Public License zusammen mit diesem Programm erhalten haben. Falls nicht, schreiben Sie an die Free Software Foundation, Inc, 51 Franklin St, Fifth Floor, Boston, MA 02110, USA. diff --git a/data/license/english.license b/data/license/english.license index 5356a7f4a..1388ffb16 100644 --- a/data/license/english.license +++ b/data/license/english.license @@ -1,14 +1,5 @@ -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -Boston, MA 02110-1301, USA. +You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 31f0052f2..66ccfdca8 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -254,7 +254,7 @@ void CImageInfo::InitSupportInfos() void CImageInfo::InitLicenseText() { license_txt = ""; - char line[256]; + char line[1024]; string file = LICENSEDIR; file += g_settings.language; file += ".license"; @@ -265,14 +265,13 @@ void CImageInfo::InitLicenseText() return; } - while (in.getline (line, 256)){ + while (in.getline (line, sizeof(line)-1)){ string lline = (string)line; license_txt += lline + '\n'; } in.close(); CComponentsInfoBox *cc_lic = new CComponentsInfoBox(item_offset, item_top, cc_win->getWidth()-2*item_offset, cc_win->getHeight()-item_top); - cc_lic->removeLineBreaks(license_txt); cc_lic->setText(license_txt, CTextBox::AUTO_WIDTH, g_Font[SNeutrinoSettings::FONT_TYPE_MENU_HINT]); //add text to container