Use snprintf instead of sprintf. Also calculate strlen(nme) once only. Found by Coverity, although it overreacted a bit.
Use snprintf instead of sprintf.
Also calculate strlen(nme) once only.
Found by Coverity, although it overreacted a bit.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb