```C++ sprintf(coordstr, " %.15g", lat); if (!strchr(coordstr, '.')) strcat(coordstr, ".0"); ``` -> ```C++ int e = sprintf(coordstr, " %.15g", lat); if (!strchr(coordstr, '.')) strcpy(coordstr+e, ".0"); ``` Better yet? ```C++ int e = sprintf(coordstr, " %.15g", lat); if (lat==int(lat)) strcpy(coordstr+e, ".0"); ``` * [x] Waypoint::nmplogs * [x] Waypoint::str() * [x] Route::csv_line() * TravelerList::userlog can wait, to avoid merge conflicts. Those cases will disappear when the ClinchedDBValues class is removed.
->
Better yet?