Hi All,
On 10/10/08, Jay A. Kreibich <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 10, 2008 at 12:59:31PM -0400, Igor Tandetnik scratched on the
> wall:
>> Shaun R. <[EMAIL PROTECTED]> wrote:
> It is true that on most systems "char" is signed, but it is worth
> remembering that this is not
Database; Teg; General Discussion
of SQLite Database
Subject: Re: [sqlite] strcpy and sqlite3_column_text
>
>strcpy(result->>ip_address,(const char*)pszData);
Strcpy is one of those evil "standard" c functions that
no one should every use, because it copies an unlimited
and
On Fri, Oct 10, 2008 at 12:59:31PM -0400, Igor Tandetnik scratched on the wall:
> Shaun R. <[EMAIL PROTECTED]> wrote:
> > I'm getting this warning when doing the following
> >
> > warning: pointer targets in passing argument 2 of 'strcpy' differ in
> > signedness
> >
> >
>
>strcpy(result->>ip_address,(const char*)pszData);
Strcpy is one of those evil "standard" c functions that
no one should every use, because it copies an unlimited
and unknown amount of data into an obviously finite buffer.
If some joker puts a little extra data in a sqlite IP address,
and
>
>strcpy(result->>ip_address,(const char*)pszData);
Strcpy is one of those evil "standard" c functions that
no one should every use, because it copies an unlimited
and unknown amount of data into an obviously finite buffer.
If some joker puts a little extra data in a sqlite IP address,
and
Shaun R. <[EMAIL PROTECTED]> wrote:
> I'm getting this warning when doing the following
>
> warning: pointer targets in passing argument 2 of 'strcpy' differ in
> signedness
>
> strcpy(result->ip_address,sqlite3_column_text(plineInfo, 2));
sqlite3_column_text returns unsigned char*. Most CRT
I'm getting this warning when doing the following
warning: pointer targets in passing argument 2 of 'strcpy' differ in
signedness
strcpy(result->ip_address,sqlite3_column_text(plineInfo, 2));
result->ip_address is from struct result { char ip_address[17]; };
Anybody know what needs to be done
7 matches
Mail list logo