From e1360a123a108d13f4c0524342ff2d0f391f88b7 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 13 Mar 2006 21:34:48 +0000 Subject: changed to use sprintf since asprintf doesn't exist on Windows svn path=/trunk/; revision=4701 --- packages/patches/complete_version_defines-0.39.2.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/patches') diff --git a/packages/patches/complete_version_defines-0.39.2.patch b/packages/patches/complete_version_defines-0.39.2.patch index 9fd51d32..9ca16f52 100644 --- a/packages/patches/complete_version_defines-0.39.2.patch +++ b/packages/patches/complete_version_defines-0.39.2.patch @@ -9,7 +9,7 @@ diff -u -w -r1.20 s_main.c * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ --char pd_version[] = "Pd version 0.39-2\n"; +-char pd_version[] = "Pd version 0.39-2\n" -char pd_compiletime[] = __TIME__; -char pd_compiledate[] = __DATE__; - @@ -20,7 +20,7 @@ diff -u -w -r1.20 s_main.c #include #endif -+char *pd_version; ++char pd_version[256]; +char pd_compiletime[] = __TIME__; +char pd_compiledate[] = __DATE__; + @@ -32,7 +32,7 @@ diff -u -w -r1.20 s_main.c return (1); sys_afterargparse(); /* post-argparse settings */ + /* build version string from defines in m_pd.h */ -+ asprintf(&pd_version, "Pd version %d.%d-%d%s\n",PD_MAJOR_VERSION, ++ sprintf(pd_version, "Pd version %d.%d-%d%s\n",PD_MAJOR_VERSION, + PD_MINOR_VERSION,PD_BUGFIX_VERSION,PD_TEST_VERSION); if (sys_verbose || sys_version) fprintf(stderr, "%scompiled %s %s\n", pd_version, pd_compiletime, pd_compiledate); -- cgit v1.2.1