Use snprintf() instead of sprintf() for safety.
Use snprintf() instead of sprintf() for safety.

I believe these instances were in fact safe, because a cursor name has
a maximum length, but better safe than sorry.

gavioto/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc,gavioto/psqlodbc,gavioto/psqlodbc,treasure-data/prestogres-odbc,hlinnaka/psqlodbc,hlinnaka/psqlodbc,treasure-data/prestogres-odbc