Project

General

Profile

Revision 192

added zoom/scale

View differences:

xpm_utils.c
21 21
char** xpm_load_xpm2(const char *fpath){
22 22
    FILE *f = fopen(fpath, "r");
23 23
    if(f == NULL) return NULL;
24
    char *line_buf = malloc(1024*sizeof(char)); size_t len = 1024;
24
    size_t len = 1024; char *line_buf = malloc(len*sizeof(char));
25 25
    int sz;
26 26

  
27 27
    char **ret = NULL;

Also available in: Unified diff