PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Touch Pro (http://forum.ppcgeeks.com/forumdisplay.php?f=63)
-   -   HTC Android - pin code - resolve problem (http://forum.ppcgeeks.com/showthread.php?t=111231)

n3ur0 02-18-2010 09:24 AM

HTC Android - pin code - resolve problem
 
hello,,

bug is inside RIL - libhtcgeneric-ril-diamond.so

there is into source library:

*if* ( datalen == *sizeof*(*char**) ) *{*
asprintf(&cmd, "AT+CPIN=%s", strings[0]); <--------HERE IS PROBLEM
*}* *else* *if* ( datalen == 2**sizeof*(*char**) ) *{*
asprintf(&cmd, "AT+CPIN=%s,%s", strings[0], strings[1]); <---- AND HERE
*}* *else*
*goto* error;

must be:

if ( datalen == sizeof(char*) ) {
asprintf(&cmd, "AT+CPIN=\"%s\"", strings[0]);
} else if ( datalen == 2*sizeof(char*) ) {
asprintf(&cmd, "AT+CPIN=\"%s\",\"%s\"", strings[0], strings[1]);
} else
goto error;


if someona got source please recompile and try did work.

gimme5 02-18-2010 04:49 PM

Re: HTC Android - pin code - resolve problem
 
I'm not sure this is the correct forum for your post...


All times are GMT -4. The time now is 10:32 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0