Changeset 883b421 for functions.c


Ignore:
Timestamp:
Aug 11, 2013, 4:40:51 PM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Parents:
76e80de (diff), ca1fb26a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge ca1fb26a9a22aea6ecd68b0150859ef065c6afc5 into 76e80dee6b4f058b982a12b57bc4ec5220eb2e13
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    ra38becd rca1fb26a  
    115115void owl_function_show_license(void)
    116116{
    117   const char *text;
    118 
    119   text=""
    120     "BarnOwl version " OWL_VERSION_STRING "\n"
     117  char *text = g_strdup_printf(
     118    "BarnOwl version %s\n"
    121119    "Copyright (c) 2006-2011 The BarnOwl Developers. All rights reserved.\n"
    122120    "Copyright (c) 2004 James Kretchmar. All rights reserved.\n"
     
    155153    "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n"
    156154    "OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n"
    157     "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n";
     155    "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
     156    version);
    158157  owl_function_popless_text(text);
     158  g_free(text);
    159159}
    160160
     
    13591359void owl_function_about(void)
    13601360{
    1361   owl_function_popless_text(
    1362     "This is BarnOwl version " OWL_VERSION_STRING ".\n\n"
     1361  char *text = g_strdup_printf(
     1362    "This is BarnOwl version %s.\n\n"
    13631363    "BarnOwl is a fork of the Owl zephyr client, written and\n"
    13641364    "maintained by Alejandro Sedeno and Nelson Elhage at the\n"
     
    13791379    "This program is free software. You can redistribute it and/or\n"
    13801380    "modify under the terms of the Sleepycat License. Use the \n"
    1381     "':show license' command to display the full license\n"
    1382   );
     1381      "':show license' command to display the full license\n",
     1382      version);
     1383  owl_function_popless_text(text);
     1384  g_free(text);
    13831385}
    13841386
     
    17811783
    17821784  owl_fmtext_append_normal(&fm, "  Version: ");
    1783   owl_fmtext_append_normal(&fm, OWL_VERSION_STRING);
     1785  owl_fmtext_append_normal(&fm, version);
    17841786  owl_fmtext_append_normal(&fm, "\n");
    17851787
Note: See TracChangeset for help on using the changeset viewer.