Changeset ca1fb26a for functions.c
- Timestamp:
- Aug 11, 2013, 4:36:03 PM (10 years ago)
- Branches:
- master
- Children:
- f1a71c8, 441fd42, 883b421
- Parents:
- 685cca7
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/20/13 12:08:41)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/11/13 16:36:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
ra38becd rca1fb26a 115 115 void owl_function_show_license(void) 116 116 { 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" 121 119 "Copyright (c) 2006-2011 The BarnOwl Developers. All rights reserved.\n" 122 120 "Copyright (c) 2004 James Kretchmar. All rights reserved.\n" … … 155 153 "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n" 156 154 "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); 158 157 owl_function_popless_text(text); 158 g_free(text); 159 159 } 160 160 … … 1359 1359 void owl_function_about(void) 1360 1360 { 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" 1363 1363 "BarnOwl is a fork of the Owl zephyr client, written and\n" 1364 1364 "maintained by Alejandro Sedeno and Nelson Elhage at the\n" … … 1379 1379 "This program is free software. You can redistribute it and/or\n" 1380 1380 "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); 1383 1385 } 1384 1386 … … 1781 1783 1782 1784 owl_fmtext_append_normal(&fm, " Version: "); 1783 owl_fmtext_append_normal(&fm, OWL_VERSION_STRING);1785 owl_fmtext_append_normal(&fm, version); 1784 1786 owl_fmtext_append_normal(&fm, "\n"); 1785 1787
Note: See TracChangeset
for help on using the changeset viewer.