2015-07-08 09:36:46 +02:00
|
|
|
Index: joe-4.0/joe/path.c
|
2009-10-26 16:55:32 +01:00
|
|
|
===================================================================
|
2015-07-08 09:36:46 +02:00
|
|
|
--- joe-4.0.orig/joe/path.c
|
|
|
|
+++ joe-4.0/joe/path.c
|
2009-10-26 16:55:32 +01:00
|
|
|
@@ -200,6 +200,8 @@ unsigned char *mktmp(unsigned char *wher
|
2007-01-16 00:19:02 +01:00
|
|
|
where = (unsigned char *)getenv("TEMP");
|
|
|
|
if (!where)
|
|
|
|
where = USTR _PATH_TMP;
|
|
|
|
+ if (strlen(where) > PATH_MAX+NAME_MAX)
|
|
|
|
+ where[PATH_MAX+NAME_MAX+1] = '\0';
|
|
|
|
|
|
|
|
namesize = zlen(where) + 16;
|
|
|
|
name = vsmk(namesize); /* [G.Ghibo'] we need to use vsmk() and not malloc() as
|