]> git.pld-linux.org Git - packages/WindowMaker.git/commitdiff
Window Maker patch
authorArtur Frysiak <artur@frysiak.net>
Mon, 1 Mar 1999 18:07:56 +0000 (18:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    WindowMaker-a_macro.patch -> 1.1

WindowMaker-a_macro.patch [new file with mode: 0644]

diff --git a/WindowMaker-a_macro.patch b/WindowMaker-a_macro.patch
new file mode 100644 (file)
index 0000000..a877370
--- /dev/null
@@ -0,0 +1,38 @@
+Date: Tue, 9 Feb 1999 21:52:06 -0600 (EST)
+From: Salvador Ortiz Garcia <sog@msg.com.mx>
+To: bugs@windowmaker.org
+cc: developers@windowmaker.org
+Subject: Yet another fix for %a macro.
+
+Full_Name: Salvador Ortiz
+Version: 0.51.0
+OS: RedHat Linux
+Submission from: lulu.msg.com.mx (200.33.54.10)
+
+The following patch cure two small remaining problems in the parser for
+the %a macro, the first is a trivial one, the other may requiere some
+explanation:
+
+At the exit of the for loop in getuserinput, ptr points to the char
+_after_ the closing perentesis, but in ExpandOptions ptr is incremented
+again, so one char is eaten.
+
+--- src/misc.c.orig    Sun Feb 14 01:01:22 1999
++++ src/misc.c Sun Feb 14 01:06:38 1999
+@@ -840,7 +840,7 @@
+        case _PROMPT:
+           if (line[*ptr]==')' && j==0) {
+-              if (*ptr-begin > 1) {
++              if (*ptr > begin) {
+                   strncpy(pbuffer, &line[begin], WMIN(*ptr-begin, 255));
+                   pbuffer[WMIN(*ptr-begin, 255)] = 0;
+                   prompt = (char*)pbuffer;
+@@ -858,6 +858,7 @@
+ #undef _PROMPT
+ #undef _DONE
++    (*ptr)--; /* To be incremented in ExpandOptions */
+     if (!wInputDialog(scr, title, prompt, &ret))
+       return NULL;
+     else
This page took 0.030514 seconds and 4 git commands to generate.