[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ShopSuite-dev] fixed ShopDB::login

From: Tomasz Wegrzanowski
Subject: [ShopSuite-dev] fixed ShopDB::login
Date: Sun, 18 Nov 2001 15:28:15 +0100
User-agent: Mutt/1.3.23i

login contained nasty bug: c++ string class function data() returned
internal char *, but it didn't have to be NULL-terminated.
It was responsible for nasty bugs like:
        Can't log in to the data base: ERROR: Missing '=' after so8859-14' in 

I changed login() to use asprintf instead of c++ string class for
creating `char *dbstring'.

this version is also smaller that previous one.

Attachment: shopDB.cpp
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]