Password struct in rw2300.h is defined as char mysql_passwd[25]
If mysql password is set in the config file it gets copied over unconditionally without any check if it's longer than the allocated 25 bytes, thus leading to a buffer overflow.
Solution: check whether password in config file is longer than 25 chars. Exit with error if this is the case (as the DB connection will fail if it's shortened to 25 chars by using strncmp).
Incidentally, this will be a problem with all other configuration parameters as well.
Test case
Enter a MYSQL password longer than 25 chars in the config file