[chocolate-doom] 79/79: Fix crash due to buffer not allocated large enough
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:07:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
jmtd pushed a commit to annotated tag chocolate-doom-0.1.3
in repository chocolate-doom.
commit 12eb8a5e0b135f7d860cca162f7118b67db81c77
Author: Simon Howard <fraggle at gmail.com>
Date: Fri Jan 20 19:46:14 2006 +0000
Fix crash due to buffer not allocated large enough
Subversion-branch: /branches/CHOCOLATE_DOOM_0_1/chocolate-doom
Subversion-revision: 307
---
src/m_misc.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/m_misc.c b/src/m_misc.c
index 05d0d3a..8ba81f8 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: m_misc.c 302 2006-01-20 00:58:17Z fraggle $
+// $Id: m_misc.c 307 2006-01-20 19:46:14Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -23,6 +23,9 @@
//
//
// $Log$
+// Revision 1.17.2.2 2006/01/20 19:46:14 fraggle
+// Fix crash due to buffer not allocated large enough
+//
// Revision 1.17.2.1 2006/01/20 00:58:17 fraggle
// Remove new networking code from stable version
//
@@ -101,7 +104,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: m_misc.c 302 2006-01-20 00:58:17Z fraggle $";
+rcsid[] = "$Id: m_misc.c 307 2006-01-20 19:46:14Z fraggle $";
#include <stdio.h>
#include <stdlib.h>
@@ -632,7 +635,7 @@ void M_LoadDefaults (void)
}
else
{
- doom_defaults.filename = malloc(strlen(configdir) + 10);
+ doom_defaults.filename = malloc(strlen(configdir) + 20);
sprintf(doom_defaults.filename, "%sdefault.cfg", configdir);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git
More information about the Pkg-games-commits
mailing list