vxi-discuss



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with remote fetching and builtin grammars



Oops, bug in my little patch to UnixHTTPURLInputStream.cpp
Sorry ;) 

This should be good:

123,124c123,124
<     char*               pathAsCharStar = XMLString::transcode(path);
<     ArrayJanitor<char>  janBuf2(pathAsCharStar);
---
>     char*               temppathAsCharStar = XMLString::transcode(path);
>     ArrayJanitor<char>  janBuf2(temppathAsCharStar);
131a132,153
>     // PAT'S HACK -- Add the query to the path if exists
>     const XMLCh*	query = urlSource.getQuery();
>     char*		queryAsCharStar = XMLString::transcode(query);
>     ArrayJanitor<char>  janBuf4(queryAsCharStar);
> 
>     char* pathAsCharStar; 
> 
>     if (queryAsCharStar)
>     {
> 
>     	pathAsCharStar = new char[strlen(temppathAsCharStar) +
strlen(queryAsCharStar) + 2];
> 	sprintf(pathAsCharStar, "%s?%s", temppathAsCharStar,
queryAsCharStar);
> 	fprintf(stderr, "Full UnixHTTPURL is %s", pathAsCharStar);
>     }
>     else
>     {
>     	pathAsCharStar = new char[strlen(temppathAsCharStar)+1 ];
> 	strcpy(pathAsCharStar, temppathAsCharStar);
>     }
>     ArrayJanitor<char>  janBuf5(pathAsCharStar);
>     // END Pat's hack.
> 	

Pat Deegan, TGFLinux




This page is maintained by Alan W Black (awb@cs.cmu.edu)
speechinfo.org is hosted on a machine donated by VA Linux Systems
VA Linux Systems