openbsd-ports/archivers/unrar/patches/patch-consio_cpp

13 lines
527 B
Plaintext

$OpenBSD: patch-consio_cpp,v 1.2 2012/04/08 17:04:20 naddy Exp $
--- consio.cpp.orig Mon Jan 9 14:46:08 2012
+++ consio.cpp Sun Apr 8 18:41:22 2012
@@ -141,7 +141,7 @@ void GetPasswordText(wchar *Str,uint MaxLength)
SetConsoleMode(hConOut,ConOutMode);
#else
char StrA[MAXPASSWORD];
-#if defined(_EMX) || defined(_BEOS) || defined(__sparc) || defined(sparc) || defined (__VMS)
+#if defined(_EMX) || defined(_BEOS) || defined (__VMS)
fgets(StrA,ASIZE(StrA)-1,stdin);
#else
strncpyz(StrA,getpass(""),ASIZE(StrA));