Mercurial > hg > Members > kono > tree_dandy2
changeset 16:7e7e6f73b11f
make tmp image file in /tmp/
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 08 Dec 2010 18:36:52 +0900 |
parents | b0f057171e18 |
children | 47101546f030 bdc882acda58 |
files | xml.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/xml.c Wed Dec 08 06:25:29 2010 +0900 +++ b/xml.c Wed Dec 08 18:36:52 2010 +0900 @@ -229,6 +229,10 @@ else if(!xmlStrcmp(cur->name,(xmlChar*)"image")) { surf->image_name = (char *)xmlGetProp(cur,(xmlChar *)"name"); + char *buf = (char*)malloc(strlen(surf->image_name)+10); + buf[0] = 0; + strcat(buf,"/tmp/"); + surf->image_name = strcat(buf, surf->image_name); outfile = fopen(surf->image_name,"wb"); if(NULL == outfile)