~ubuntu-branches/ubuntu/raring/muse/raring

« back to all changes in this revision

Viewing changes to debian/patches/30_fix_x64_sysmalloc.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): SevenMachines
  • Date: 2009-11-26 18:07:57 UTC
  • Revision ID: james.westby@ubuntu.com-20091126180757-oaje7i461ax22h3g
Tags: 0.8.1a-6.3ubuntu1
* debian/30_fix_x64_sysmalloc.dpatch: fix sysmalloc on amd64 systems. Patch
  taken from upstream.
* debian/patches/00list.amd64: only apply 30_fix_x64_sysmalloc.dpatch on amd64
  (LP: #479662 ) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 30_fix_x64_sysmalloc.dpatch by SevenMachines <SevenMachines@yahoo.co.uk>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: No description.
 
6
 
 
7
@DPATCH@
 
8
diff -urNad muse-0.8.1a~/muse/memory.cpp muse-0.8.1a/muse/memory.cpp
 
9
--- muse-0.8.1a~/muse/memory.cpp        2003-10-27 18:51:22.000000000 +0000
 
10
+++ muse-0.8.1a/muse/memory.cpp 2009-11-26 17:52:31.000000000 +0000
 
11
@@ -48,7 +48,7 @@
 
12
       {
 
13
 //      printf("grow memory idx %d\n", idx);
 
14
 
 
15
-      int esize = (idx+1) * sizeof(int);
 
16
+      int esize = (idx+1) * sizeof(int)+2;
 
17
 
 
18
       Chunk* n    = new Chunk;
 
19
       n->next     = chunks[idx];