1 | /* |
1 | /* |
2 | * gen_image.c - Part of psiconv, a PSION 5 file formats converter |
2 | * gen_image.c - Part of psiconv, a PSION 5 file formats converter |
3 | * Copyright (c) 1999-2005 Frodo Looijaard <frodo@frodo.looijaard.name> |
3 | * Copyright (c) 1999-2014 Frodo Looijaard <frodo@frodo.looijaard.name> |
4 | * |
4 | * |
5 | * This program is free software; you can redistribute it and/or modify |
5 | * This program is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by |
6 | * it under the terms of the GNU General Public License as published by |
7 | * the Free Software Foundation; either version 2 of the License, or |
7 | * the Free Software Foundation; either version 2 of the License, or |
8 | * (at your option) any later version. |
8 | * (at your option) any later version. |
… | |
… | |
87 | void image_to_list(psiconv_list list,Image *image,const char *dest) |
87 | void image_to_list(psiconv_list list,Image *image,const char *dest) |
88 | { |
88 | { |
89 | ImageInfo *image_info; |
89 | ImageInfo *image_info; |
90 | ExceptionInfo exc; |
90 | ExceptionInfo exc; |
91 | size_t length; |
91 | size_t length; |
92 | char *data; |
92 | unsigned char *data; |
93 | int i; |
93 | int i; |
94 | |
94 | |
95 | strcpy(image->magick,dest); |
95 | strcpy(image->magick,dest); |
96 | image_info = CloneImageInfo(NULL); |
96 | image_info = CloneImageInfo(NULL); |
97 | GetExceptionInfo(&exc); |
97 | GetExceptionInfo(&exc); |