Allow slash in filename for wcmd

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

 



Changelog:
	programs/wcmd/wcmdmain.c: WCMD_parse
	Allow slashes for command filenames
-- 
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/programs/wcmd/wcmdmain.c
===================================================================
RCS file: /home/wine/wine/programs/wcmd/wcmdmain.c,v
retrieving revision 1.15
diff -u -r1.15 wcmdmain.c
--- wine/programs/wcmd/wcmdmain.c	24 Jul 2002 19:00:48 -0000	1.15
+++ wine/programs/wcmd/wcmdmain.c	7 Sep 2002 20:08:10 -0000
@@ -526,6 +526,7 @@
 void WCMD_parse (char *s, char *q, char *p1, char *p2) {
 
 int p = 0;
+char *cstart = s;
 
   *q = *p1 = *p2 = '\0';
   while (TRUE) {
@@ -555,7 +556,7 @@
       case '\0':
         return;
       default:
-	while ((*s != '\0') && (*s != ' ') && (*s != '/')) {
+	while ((*s != '\0') && (*s != ' ') && ((*s != '/') || (s != cstart))) {
 	  if (p == 0) *p1++ = *s++;
 	  else if (p == 1) *p2++ = *s++;
 	  else s++;


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

  Powered by Linux