Changeset 554a2b8 for regex.c


Ignore:
Timestamp:
Dec 6, 2008, 2:33:28 AM (12 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
  • regex.c

    r8b7466b r554a2b8  
    1313{
    1414  int ret;
    15   char buff1[LINE], buff2[LINE];
     15  char buff1[LINE];
    1616  char *ptr;
    1717 
     
    2929  if (ret) {
    3030    regerror(ret, NULL, buff1, LINE);
    31     sprintf(buff2, "Error in regular expression: %s", buff1);
    32     owl_function_makemsg(buff2);
     31    owl_function_makemsg("Error in regular expression: %s", buff1);
    3332    owl_free(re->string);
    3433    re->string=NULL;
Note: See TracChangeset for help on using the changeset viewer.