From b4a002dad038ce9fe18d8d29cb00fa72fc768cf1 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 12 May 2004 20:56:17 +0000 Subject: [PATCH] Removed spurious junk so the file compiles strdup removed - not ANSI and not on my system git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5904 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/allegrocl.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SWIG/Source/Modules/allegrocl.cxx b/SWIG/Source/Modules/allegrocl.cxx index 537ce1fab..999f93d20 100644 --- a/SWIG/Source/Modules/allegrocl.cxx +++ b/SWIG/Source/Modules/allegrocl.cxx @@ -1,6 +1,6 @@ -#include "swigmod.h" +char cvsroot_allegrocl_cxx[] = "$Header$"; -;; $Id$ +#include "swigmod.h" class ALLEGROCL : public Language { public: @@ -179,7 +179,8 @@ void ALLEGROCL :: main(int argc, char *argv[]) { identifier_converter="identifier-convert-null"; } else { /* Must be user defined */ - identifier_converter=strdup(conv); + identifier_converter = (char *)malloc(strlen(conv)+1); + strcpy(identifier_converter, conv); } }