wcmd long command lines and pipes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change Log:
This allows longer command lines, up to 2048 bytes with pipes to be processed by wcmd




--- /usr/src/redhat/SOURCES/wine-20030618/programs/wcmd/wcmdmain.c 2003-05-10 22:48:17.000000000 -0400
+++ wcmdmain.c 2003-07-04 11:10:28.000000000 -0400
@@ -191,7 +191,10 @@
* the currently allocated input and output handles. This allows
* us to pipe to and read from the command interpreter.
*/
- WCMD_process_command(cmd);
+ if (strchr(cmd,'|') != NULL)
+ WCMD_pipe(cmd);
+ else
+ WCMD_process_command(cmd);
HeapFree(GetProcessHeap(), 0, cmd);
return 0;
}
@@ -250,7 +253,7 @@


void WCMD_process_command (char *command) {

-char cmd[1024];
+char cmd[2048];
 char *p;
 int status, i;
 DWORD count;


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux