Changeset 2101a50


Ignore:
Timestamp:
Feb 11, 2009, 12:20:21 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1490327
Parents:
44a61ac
git-author:
Geoffrey Thomas <geofft@mit.edu> (02/07/09 19:25:21)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/11/09 12:20:21)
Message:
owl_function_about: suppress unsafe use of sprintf/strcat
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r637d983 r2101a50  
    14051405void owl_function_about()
    14061406{
    1407   char buff[5000];
    1408 
    1409   sprintf(buff, "This is barnowl version %s\n\n", OWL_VERSION_STRING);
    1410   strcat(buff, "barnowl is a fork of the Owl zephyr client, written and\n");
    1411   strcat(buff, "maintained by Alejandro Sedeno and Nelson Elhage at the\n");
    1412   strcat(buff, "Massachusetts Institute of Technology. \n");
    1413   strcat(buff, "\n");
    1414   strcat(buff, "Owl was written by James Kretchmar. The first version, 0.5, was\n");
    1415   strcat(buff, "released in March 2002.\n");
    1416   strcat(buff, "\n");
    1417   strcat(buff, "The name 'owl' was chosen in reference to the owls in the\n");
    1418   strcat(buff, "Harry Potter novels, who are tasked with carrying messages\n");
    1419   strcat(buff, "between Witches and Wizards. The name 'barnowl' was chosen\n");
    1420   strcat(buff, "because we feel our owls should live closer to our ponies.\n");
    1421   strcat(buff, "\n");
    1422   strcat(buff, "Copyright (c) 2006-2008 The BarnOwl Developers. All rights reserved.\n");
    1423   strcat(buff, "Copyright (c) 2004 James Kretchmar. All rights reserved.\n");
    1424   strcat(buff, "Copyright 2002 Massachusetts Institute of Technology\n");
    1425   strcat(buff, "\n");
    1426   strcat(buff, "This program is free software. You can redistribute it and/or\n");
    1427   strcat(buff,  "modify under the terms of the Sleepycat License. Use the \n");
    1428   strcat(buff,  "':show license' command to display the full license\n");
    1429   owl_function_popless_text(buff);
     1407  owl_function_popless_text(
     1408    "This is barnowl version " OWL_VERSION_STRING ".\n\n"
     1409    "barnowl is a fork of the Owl zephyr client, written and\n"
     1410    "maintained by Alejandro Sedeno and Nelson Elhage at the\n"
     1411    "Massachusetts Institute of Technology. \n"
     1412    "\n"
     1413    "Owl was written by James Kretchmar. The first version, 0.5, was\n"
     1414    "released in March 2002.\n"
     1415    "\n"
     1416    "The name 'owl' was chosen in reference to the owls in the\n"
     1417    "Harry Potter novels, who are tasked with carrying messages\n"
     1418    "between Witches and Wizards. The name 'barnowl' was chosen\n"
     1419    "because we feel our owls should live closer to our ponies.\n"
     1420    "\n"
     1421    "Copyright (c) 2006-2008 The BarnOwl Developers. All rights reserved.\n"
     1422    "Copyright (c) 2004 James Kretchmar. All rights reserved.\n"
     1423    "Copyright 2002 Massachusetts Institute of Technology\n"
     1424    "\n"
     1425    "This program is free software. You can redistribute it and/or\n"
     1426    "modify under the terms of the Sleepycat License. Use the \n"
     1427    "':show license' command to display the full license\n"
     1428  );
    14301429}
    14311430
Note: See TracChangeset for help on using the changeset viewer.