Re: [sqlite] strcpy and sqlite3_column_text

2008-10-11 Thread Asif Lodhi
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

Re: [sqlite] strcpy and sqlite3_column_text

2008-10-10 Thread Ribeiro, Glauber
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

Re: [sqlite] strcpy and sqlite3_column_text

2008-10-10 Thread Jay A. Kreibich
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 > > > >

Re: [sqlite] strcpy and sqlite3_column_text

2008-10-10 Thread Dave Dyer
> >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

Re: [sqlite] strcpy and sqlite3_column_text

2008-10-10 Thread Dave Dyer
> >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

Re: [sqlite] strcpy and sqlite3_column_text

2008-10-10 Thread Igor Tandetnik
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

[sqlite] strcpy and sqlite3_column_text

2008-10-10 Thread Shaun R.
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