Message: Re: strdup's not defined Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: strdup's not defined 

Forum: Installation and Configuration
Re: Warning strdup's not defined (Mathieu Trocmé)
Date: 30 Apr, 2010
From: Makoto Asai <Makoto Asai>

Hi,

It seems the fix of strdup was slipped out from the recent Patch release. We apology for this. Please replace the problematic line of G4OpenGLViewer.cc

  char* oldLocale = strdup(setlocale(LC_NUMERIC,NULL));

to the following two lines

  char* oldLocale = (char*)(malloc(strlen(setlocale(LC_NUMERIC,NULL))+1));
  if(oldLocale!=NULL) strcpy(oldLocale,setlocale(LC_NUMERIC,NULL));

This fix should be included in the next release.

Makoto

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: strdup's not defined   (Mathieu Trocmé - 30 Apr, 2010)
 Add Message Add Message
to: "Re: strdup's not defined"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]