summaryrefslogtreecommitdiff
path: root/maximus
diff options
context:
space:
mode:
authorburet2008-03-31 12:22:31 +0000
committerburet2008-03-31 12:22:31 +0000
commit57e74e0b4e09b6501129347c8848cb4233ede9cc (patch)
treefeb2704dc4de570d5562cb7644c4c0c81487aff4 /maximus
parenta7968439f5c6d5d762a778d402fd2988d07700e8 (diff)
Maximus V2: conversion of current tick value.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1695 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'maximus')
-rw-r--r--maximus/system/src/Station.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/maximus/system/src/Station.cpp b/maximus/system/src/Station.cpp
index abb7aa7c13..7be468b815 100644
--- a/maximus/system/src/Station.cpp
+++ b/maximus/system/src/Station.cpp
@@ -390,9 +390,10 @@ void Station::startProcess ( const Network_Clock_Tick current_tick_value )
size_t stringLength = getStationConfiguration()->getStationExecutable().copy(stationExecutable, getStationConfiguration()->getStationExecutable().size());
stationExecutable[stringLength] = '\0';
- char * pCurrentTickValue = (char *)&current_tick_value;
+ char currentTickValue[32];
+ sprintf(currentTickValue, "%llu", current_tick_value);
- if (-1 == execlp(stationExecutable, stationExecutable, pCurrentTickValue, NULL))
+ if (-1 == execlp(stationExecutable, stationExecutable, currentTickValue, NULL))
{
throw Error(__PRETTY_FUNCTION__, "Cannot launch station executable", errno);
}