+ char *type_tmp = 0;
+ char type_args[4][60]; /* 0; 1=2,3 (1 is assumed charset) */
+ type_args[0][0] = 0;
+ type_args[1][0] = 0;
+ type_args[2][0] = 0;
+ type_args[3][0] = 0;
+ sscanf(type, "%59[^;];%59[^=]=%59[^,],%59[^,]", type_args[0],
+ type_args[1], type_args[2], type_args[3]);
+
+ if (!strcmp(type_args[0], "string")) {
+ type_tmp = xstrdup(type);
+ strcpy(type_tmp, "render");
+ strcat(type_tmp, type + 6);
+ type = type_tmp;
+ }