Changeset 554a2b8 for commands.c


Ignore:
Timestamp:
Dec 6, 2008, 2:33:28 AM (13 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6eaf35b
Parents:
2aaca94
git-author:
Anders Kaseorg <andersk@mit.edu> (12/06/08 01:42:34)
git-committer:
Anders Kaseorg <andersk@mit.edu> (12/06/08 02:33:28)
Message:
Fix format string injection bugs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r2209f16 r554a2b8  
    10471047void owl_command_version()
    10481048{
    1049   char buff[1024];
    1050 
    1051   sprintf(buff, "BarnOwl version %s", OWL_VERSION_STRING);
    1052   owl_function_makemsg(buff);
     1049  owl_function_makemsg("BarnOwl version %s", OWL_VERSION_STRING);
    10531050}
    10541051
     
    16921689  }
    16931690
    1694   owl_function_debugmsg(argv[1]);
     1691  owl_function_debugmsg("%s", argv[1]);
    16951692  return(NULL);
    16961693}
     
    25832580{
    25842581    buff = skiptokens(buff, 1);
    2585     owl_function_error(buff);
     2582    owl_function_error("%s", buff);
    25862583    return NULL;
    25872584}
     
    25902587{
    25912588    buff = skiptokens(buff, 1);
    2592     owl_function_makemsg(buff);
     2589    owl_function_makemsg("%s", buff);
    25932590    return NULL;
    25942591}
Note: See TracChangeset for help on using the changeset viewer.