Changeset 418 for pwntcha/trunk/src/phpbb.c
- Timestamp:
- Jan 5, 2005, 12:04:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/phpbb.c
r415 r418 21 21 #define FONTNAME "share/font_phpbb.png" 22 22 23 static struct image *find_glyphs(struct image *img);24 25 /* Global stuff */26 char *result;27 28 23 /* Main function */ 29 24 char *decode_phpbb(struct image *img) 30 25 { 31 26 char all[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789"; 27 char *result; 32 28 struct image *tmp1, *tmp2, *tmp3; 33 29 struct image *font = image_load(FONTNAME); … … 37 33 int distmin, distx, disty, distch; 38 34 39 /* phpBB captchas have 6 characters */40 result = malloc(7 * sizeof(char));41 strcpy(result, " ");42 43 35 if(!font) 44 36 { … … 46 38 exit(-1); 47 39 } 40 41 /* phpBB captchas have 6 characters */ 42 result = malloc(7 * sizeof(char)); 43 strcpy(result, " "); 48 44 49 45 tmp1 = filter_smooth(img);
Note: See TracChangeset
for help on using the changeset viewer.