Vitaliy Margolen : wineshelllink: Fix menu entries with double spaces in their names.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 26 07:59:30 CST 2007


Module: wine
Branch: master
Commit: 5f960781fcb9912cac22602c18be5c15b21bd1eb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5f960781fcb9912cac22602c18be5c15b21bd1eb

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Sat Feb 24 20:34:21 2007 -0700

wineshelllink: Fix menu entries with double spaces in their names.

---

 tools/wineshelllink |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/wineshelllink b/tools/wineshelllink
index 55a1942..e4c0fb2 100755
--- a/tools/wineshelllink
+++ b/tools/wineshelllink
@@ -153,8 +153,8 @@ BEGIN {  RS="<" }
 #   new item
 write_menu_file()
 {
-    menu=`echo $1 | sed 's!/!-!g'`
-    filename=`echo $2 | sed 's!/!-!g'`
+    menu=`echo "$1" | sed 's!/!-!g'`
+    filename=`echo "$2" | sed 's!/!-!g'`
 
     tmpfile=`mktemp /tmp/wine.XXXXXX`
     (




More information about the wine-cvs mailing list