diff --git a/api/boinc_api.C b/api/boinc_api.C
index 50827457d1..dace2c51a1 100644
--- a/api/boinc_api.C
+++ b/api/boinc_api.C
@@ -577,10 +577,10 @@ int write_init_data_file(FILE* f, APP_INIT_DATA& ai) {
fprintf(f, "\n%s\n", ai.app_preferences);
}
if (strlen(ai.team_name)) {
- fprintf(f, "\n%s\n", ai.team_name);
+ fprintf(f, "%s\n", ai.team_name);
}
if (strlen(ai.user_name)) {
- fprintf(f, "\n%s\n", ai.user_name);
+ fprintf(f, "%s\n", ai.user_name);
}
fprintf(f,
"%f\n"