31612d2f8a
- fix a stack corruption on startup (bits taken from celestia SVN) - use SUBST_CMD (gotta love that stuff!)
13 lines
467 B
Plaintext
13 lines
467 B
Plaintext
$OpenBSD: patch-src_celengine_astro_cpp,v 1.2 2008/05/10 17:25:52 ajacoutot Exp $
|
|
--- src/celengine/astro.cpp.orig Wed Apr 23 23:17:16 2008
|
|
+++ src/celengine/astro.cpp Sat May 10 17:35:15 2008
|
|
@@ -459,7 +459,7 @@ const char* astro::Date::toCStr(Format format) const
|
|
{
|
|
static char date[255];
|
|
|
|
-#ifdef __GNUC__
|
|
+#if defined __GNUC__ && !defined __OpenBSD__
|
|
struct tm cal_time;
|
|
memset(&cal_time, 0, sizeof(cal_time));
|
|
cal_time.tm_year = year-1900;
|