aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-14 17:25:26 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-05-14 17:25:26 +0000
commitf9a0cc01d23bcd87441d6d5119064771665e2a17 (patch)
tree081e9f9c5dc04fd7daf23bb61af2e492ddf8df04 /packages
parent7db4a16d4dbcaf8f8d8805e47e70d73814821c5b (diff)
updated to fix crasher bug on GNU/Linux
svn path=/trunk/; revision=9796
Diffstat (limited to 'packages')
-rw-r--r--packages/patches/add_tilde_support_toopen-0.41.4.patch16
1 files changed, 10 insertions, 6 deletions
diff --git a/packages/patches/add_tilde_support_toopen-0.41.4.patch b/packages/patches/add_tilde_support_toopen-0.41.4.patch
index 3661823a..ef854bba 100644
--- a/packages/patches/add_tilde_support_toopen-0.41.4.patch
+++ b/packages/patches/add_tilde_support_toopen-0.41.4.patch
@@ -1,8 +1,8 @@
Index: s_path.c
===================================================================
---- s_path.c (revision 9773)
+--- s_path.c (revision 9725)
+++ s_path.c (working copy)
-@@ -30,6 +30,10 @@
+@@ -22,6 +22,10 @@
#include <io.h>
#endif
@@ -13,7 +13,7 @@ Index: s_path.c
#include <string.h>
#include "m_pd.h"
#include "m_imp.h"
-@@ -70,6 +70,30 @@
+@@ -69,6 +73,30 @@
*to = 0;
}
@@ -44,16 +44,20 @@ Index: s_path.c
/******************* Utility functions used below ******************/
/*!
-@@ -199,7 +223,7 @@
+@@ -196,9 +224,11 @@
+ char *dirresult, char **nameresult, unsigned int size, int bin)
+ {
int fd;
++ char buf[FILENAME_MAX];
if (strlen(dir) + strlen(name) + strlen(ext) + 4 > size)
return (-1);
- strcpy(dirresult, dir);
-+ sys_expandpath(dir, dirresult);
++ sys_expandpath(dir, buf);
++ strcpy(dirresult, buf);
if (*dirresult && dirresult[strlen(dirresult)-1] != '/')
strcat(dirresult, "/");
strcat(dirresult, name);
-@@ -251,9 +275,9 @@
+@@ -250,9 +280,9 @@
int sys_open_absolute(const char *name, const char* ext,
char *dirresult, char **nameresult, unsigned int size, int bin, int *fdp)
{