From b0f4f7e71202ba96e7af4c7661675779a7c9f4a4 Mon Sep 17 00:00:00 2001 From: bchristiansen Date: Fri, 30 Apr 2010 14:59:45 +0000 Subject: [PATCH] Fix for broken - Alexis Cousein git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@132 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- src/moab/MPBSI.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/moab/MPBSI.c b/src/moab/MPBSI.c index 381c918..8a9b35c 100644 --- a/src/moab/MPBSI.c +++ b/src/moab/MPBSI.c @@ -6250,6 +6250,7 @@ int __MPBSNLToTaskString( int tindex; char tmpHostName[MAX_MLINE]; + char tmpTaskList[MAX_MLINE+10]; mnode_t *N; @@ -6302,10 +6303,11 @@ int __MPBSNLToTaskString( } else { - sprintf(TSBuf,"%s%s:ppn=%d", - TSBuf, + snprintf(tmpTaskList,sizeof(tmpTaskList),"%s:ppn=%d", tmpHostName, NL[tindex].TC); + + MUStrCat(TSBuf,tmpTaskList,BufSize); } } /* END for (tindex) */