Changeset 500 for trunk/zoo-project
- Timestamp:
- Sep 1, 2014, 9:30:41 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r492 r500 1913 1913 1914 1914 xmlAddChild(nc3,xmlNewText(BAD_CAST base64(tmp3->value, atoi(rs->value)))); 1915 if(tmp1==NULL || (tmp1!=NULL && strncmp(tmp1->value,"base64",6)!=0)) 1916 xmlNewProp(nc3,BAD_CAST "encoding",BAD_CAST "base64"); 1915 1917 if(!isSized){ 1916 1918 freeMap(&rs); … … 2305 2307 free(file_name); 2306 2308 free(file_url); 2307 2309 } 2308 2310 #ifdef USE_MS 2309 2311 else{ … … 2420 2422 bmem = BIO_new(BIO_s_mem()); 2421 2423 b64 = BIO_push(b64, bmem); 2422 BIO_write(b64, input, length );2424 BIO_write(b64, input, length+1); 2423 2425 BIO_flush(b64); 2424 2426 BIO_get_mem_ptr(b64, &bptr); 2425 2427 2426 char *buff = (char *)malloc((bptr->length )*sizeof(char));2427 memcpy(buff, bptr->data, bptr->length -1);2428 char *buff = (char *)malloc((bptr->length+1)*sizeof(char)); 2429 memcpy(buff, bptr->data, bptr->length); 2428 2430 buff[bptr->length-1] = 0; 2429 2431
Note: See TracChangeset
for help on using the changeset viewer.