]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker-a_macro.patch
- ups
[packages/WindowMaker.git] / WindowMaker-a_macro.patch
1 diff -Nur WindowMaker-0.70.0.orig/src/misc.c WindowMaker-0.70.0/src/misc.c
2 --- WindowMaker-0.70.0.orig/src/misc.c  Thu Oct  4 05:39:18 2001
3 +++ WindowMaker-0.70.0/src/misc.c       Thu Oct 18 16:26:04 2001
4 @@ -679,7 +679,7 @@
5          case _PROMPT:
6             if (line[*ptr]==')' && j==0) {
7  
8 -               if (*ptr-begin > 1) {
9 +               if (*ptr > begin) {
10                     strncpy(pbuffer, &line[begin], WMIN(*ptr-begin, BUFSIZE));
11                     pbuffer[WMIN(*ptr-begin, BUFSIZE)] = 0;
12                     prompt = (char*)pbuffer;
13 @@ -698,6 +698,7 @@
14  #undef _PROMPT
15  #undef _DONE
16  
17 +    (*ptr)--; /* To be incremented in ExpandOptions */
18      if (!wInputDialog(scr, title, prompt, &ret))
19         return NULL;
20      else
This page took 0.032244 seconds and 3 git commands to generate.