… | |
… | |
375 | /* Copy the list to the actual string */ |
375 | /* Copy the list to the actual string */ |
376 | if (!(result = malloc(sizeof(*result) * (psiconv_list_length(string) + 1)))) |
376 | if (!(result = malloc(sizeof(*result) * (psiconv_list_length(string) + 1)))) |
377 | goto ERROR2; |
377 | goto ERROR2; |
378 | for (i = 0; i < psiconv_list_length(string); i++) { |
378 | for (i = 0; i < psiconv_list_length(string); i++) { |
379 | if (!(nextcharptr = psiconv_list_get(string,i))) { |
379 | if (!(nextcharptr = psiconv_list_get(string,i))) { |
380 | psiconv_error(config,lev,off+i+len,"Internal data corruption"); |
380 | psiconv_error(config,lev,off+i+len,"Data structure corruption"); |
381 | goto ERROR3; |
381 | goto ERROR3; |
382 | } |
382 | } |
383 | result[i] = *nextcharptr; |
383 | result[i] = *nextcharptr; |
384 | } |
384 | } |
385 | result[i] = 0; |
385 | result[i] = 0; |