diff --git a/files/profile.c b/files/profile.c index 6f1a50f2ed8..654b1f38dff 100644 --- a/files/profile.c +++ b/files/profile.c @@ -117,6 +117,7 @@ static void PROFILE_CopyEntry( char *buffer, const char *value, int len, p = p2 + 1; } } + if (quote && (len > 1)) buffer--; *buffer = '\0'; }