Changeset 418 for pwntcha/trunk


Ignore:
Timestamp:
Jan 5, 2005, 12:04:30 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • removed global variables.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/phpbb.c

    r415 r418  
    2121#define FONTNAME "share/font_phpbb.png"
    2222
    23 static struct image *find_glyphs(struct image *img);
    24 
    25 /* Global stuff */
    26 char *result;
    27 
    2823/* Main function */
    2924char *decode_phpbb(struct image *img)
    3025{
    3126    char all[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789";
     27    char *result;
    3228    struct image *tmp1, *tmp2, *tmp3;
    3329    struct image *font = image_load(FONTNAME);
     
    3733    int distmin, distx, disty, distch;
    3834
    39     /* phpBB captchas have 6 characters */
    40     result = malloc(7 * sizeof(char));
    41     strcpy(result, "      ");
    42 
    4335    if(!font)
    4436    {
     
    4638        exit(-1);
    4739    }
     40
     41    /* phpBB captchas have 6 characters */
     42    result = malloc(7 * sizeof(char));
     43    strcpy(result, "      ");
    4844
    4945    tmp1 = filter_smooth(img);
Note: See TracChangeset for help on using the changeset viewer.