On Fri, Apr 13, 2012 at 5:53 PM, ChunEon Park <[email protected]> wrote:
> Ah! yes. it's for image format.
> But if it is a buffer for image then why does it have one more space?
> just curious.

It's not really needed. just addition 1. i think it can be removed

>
>
>
> ------------------------------------
>
> -Regards, Hermet-
>
>
>
>
> -----Original Message-----
> From: "Hyoyoung Chang"&lt;[email protected]&gt;
> To: "Enlightenment developer 
> list"&lt;[email protected]&gt;;
> Cc:
> Sent: 2012-04-13 (금) 14:51:33
> Subject: Re: [E-devel] question about elm_cnp_selection_set in elm_cnp
>
> it's image type. that means some null char can be contained in the buffer.
> it's not char string so its not need to null terminated.
>
> On Fri, Apr 13, 2012 at 2:01 PM, Minseok Kim 
> &lt;minseok3.kim&gt;@samsung.com&gt; wrote:
> &gt; I have a question.
> &gt;
> &gt; ----elm_cnp.c : 418
> &gt; 
> ----------------------------------------------------------------------------
> &gt; -------------------
> &gt;
> &gt;        if (format == ELM_SEL_FORMAT_IMAGE)
> &gt;          {
> &gt;             sel-&gt;selbuf = malloc(buflen+1);
> &gt;             memcpy(sel-&gt;selbuf, selbuf, buflen);
> &gt;          }
> &gt;
> &gt; 
> ----------------------------------------------------------------------------
> &gt; ---------------------------------------
> &gt;
> &gt; This code allocates buffer with 'buflen+1' and copy.
> &gt; But there is no code to add last '\0' character.
> &gt;
> &gt; Is there no problem?
> &gt; I think it need to set last '\0' character(or need to use calloc)
> &gt;
> &gt; Please answer me.
> &gt;
> &gt; Thanks.
> &gt;
> &gt;
> &gt; 
> ------------------------------------------------------------------------------
> &gt; For Developers, A Lot Can Happen In A Second.
> &gt; Boundary is the first to Know...and Tell You.
> &gt; Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> &gt; http://p.sf.net/sfu/Boundary-d2dvs2
> &gt; _______________________________________________
> &gt; enlightenment-devel mailing list
> &gt; [email protected]
> &gt; https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to