diff --git a/programs/winecfg/winecfg.c b/programs/winecfg/winecfg.c index 0f284076762..5aafcf6caf2 100644 --- a/programs/winecfg/winecfg.c +++ b/programs/winecfg/winecfg.c @@ -515,7 +515,7 @@ void PRINTERROR(void) (LPSTR)&msg, 0, NULL); /* eliminate trailing newline, is this a Wine bug? */ - *(strrchr(msg, '\n')) = '\0'; + *(strrchr(msg, '\r')) = '\0'; WINE_TRACE("error: '%s'\n", msg); }