<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Hi!<div><br>&gt; If answer is "xxxxxxxx+CMGR:" string, the position var will point at <br>&gt; char "+" (line 171).</div><div><br></div><div>We agree so far.<br><br>&gt; Now, following the code, line 178, the beginning var will point at the <br>&gt; \0 null terminator;</div><div><br></div><div>"+CMGR:" is 6 characters. Variable position is pointing at the first one,</div><div>so after executing line 178, variable beginning points *past* the</div><div>terminating zero&nbsp;and into invalid memory, does it not?</div><div><br></div><div>Then "end=beginning;" is executed, and next "*end" from</div><div>the for-loop condition&nbsp;is an invalid access.</div><div><br></div><div>Pascal</div><div><br></div>                                               <br /><hr />Hotmail: Trusted email with Microsoft’s powerful SPAM protection. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>