Hello Shaun,

In my mind, that's a crash waiting to happen.

It returns an unsigned char* and strcpy wants a signed one
const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol);


        const unsigned char* pszData = 
sqlite3_column_text(m_pStatement,static_cast<int>(nCol));
        if( !pszData )
        {
                return(E_ABORT);
        }
        strcpy(result->>ip_address,(const char*)sqlite3_column_text(plineInfo, 
2));

I'd check the return value before I used it.  I didn't test the cast
so, you might need to tweek it. I actually do a UTF8 translation after
I get the text back.
        
C

Friday, October 10, 2008, 12:25:45 PM, you wrote:

SR> I'm getting this warning when doing the following

SR> warning: pointer targets in passing argument 2 of 'strcpy' differ in 
SR> signedness

strcpy(result->>ip_address,sqlite3_column_text(plineInfo, 2));

result->>ip_address is from struct result { char ip_address[17]; };

SR> Anybody know what needs to be done here.

SR> ~Shaun 


SR> _______________________________________________
SR> sqlite-users mailing list
SR> [email protected]
SR> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users



-- 
Best regards,
 Teg                            mailto:[EMAIL PROTECTED]

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to