<font size=2>Hi Bart,</font>
<br>
<br><font size=2>Thanks again.</font>
<br><font size=2>I got it.</font>
<br>
<br><font size=1 color=#c20000 face="Lucida Console">-      
*len = 3;</font>
<br><font size=1 color=#c20000 face="Lucida Console">-      
asprintf(reply, "%d\n", mpp->prflag);</font>
<br><font size=1 color=#00c200 face="Lucida Console">+</font><font size=1 face="Lucida Console">
      </font><font size=1 color=#00c200 face="Lucida Console">*len
= asprintf(reply, "%d\n", mpp->prflag);</font>
<br><font size=1 color=#00c200 face="Lucida Console">+</font><font size=1 face="Lucida Console">
      </font><font size=1 color=#00c200 face="Lucida Console">if
(*len < 0)</font>
<br><font size=1 color=#00c200 face="Lucida Console">+</font><font size=1 face="Lucida Console">
              </font><font size=1 color=#00c200 face="Lucida Console">return
1;</font>
<br>
<br><font size=2>On 08/03/2016 12:09 AM, peng.liang5@zte.com.cn wrote:<br>
> +                
*len = 3;<br>
> +                
asprintf(reply, "%d\n", mpp->prflag);<br>
<br>
Hello Peng,<br>
<br>
Please use the return value of asprintf() to compute *len instead of <br>
assigning a hard-coded constant to *len.<br>
<br>
Thanks,<br>
<br>
Bart.</font><font size=2 face="sans-serif"><br>
</font>
<br>