Author: pschweitzer
Date: Sat May 3 18:52:00 2014
New Revision: 63139
URL:
http://svn.reactos.org/svn/reactos?rev=63139&view=rev
Log:
[PIPEREAD]
Prevent null buffer dereference
Modified:
trunk/reactos/tools/pipetools/piperead.cpp
Modified: trunk/reactos/tools/pipetools/piperead.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/pipetools/piperead.c…
==============================================================================
--- trunk/reactos/tools/pipetools/piperead.cpp [iso-8859-1] (original)
+++ trunk/reactos/tools/pipetools/piperead.cpp [iso-8859-1] Sat May 3 18:52:00 2014
@@ -196,8 +196,8 @@
case 3:
clientMode = *++argv;
if (strcmp(clientMode,"-c") != 0) {
+ fprintf(stderr,"Invalid option: %s\n", clientMode);
clientMode = NULL;
- fprintf(stderr,"Invalid option: %s\n", clientMode);
res = -6;
}
//fall through