File: power-typo.patch

package info (click to toggle)
crm114 20100106-11
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 3,240 kB
  • sloc: ansic: 35,506; makefile: 793; sh: 617; lisp: 208
file content (17 lines) | stat: -rw-r--r-- 845 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Fix from https://sourceforge.net/p/crm114/bugs/3/

Index: crm114/crm_expr_syscall.c
===================================================================
--- crm114.orig/crm_expr_syscall.c
+++ crm114/crm_expr_syscall.c
@@ -590,8 +590,8 @@ int crm_expr_syscall ( CSL_CELL *csl, AR
       pipeSecAttr.bInheritHandle = TRUE;
       pipeSecAttr.lpSecurityDescriptor = NULL;
 
-      status = CreatePipe(&to_minion[0], &to_minion[1], &pipeSecAttr, 2^10 * 32);
-      status = CreatePipe(&from_minion[0], &from_minion[1], &pipeSecAttr, 2^10 * 32);
+      status = CreatePipe(&to_minion[0], &to_minion[1], &pipeSecAttr, 1024 * 32);
+      status = CreatePipe(&from_minion[0], &from_minion[1], &pipeSecAttr, 1024 * 32);
 
       crm_nextword (sys_cmd, strlen (sys_cmd), 0, &vstart, &vlen);
       varline = crm_lookupvarline (vht, sys_cmd, vstart, vlen);