- Recovered POLDI from the land of lost files
This commit is contained in:
19
docho.c
19
docho.c
@@ -94,7 +94,7 @@ extern char *trim(char *pTrim); /* trim.c */
|
||||
/*----------------------------------------------------------------------*/
|
||||
static void SplitChopperReply(pCodri self, char *prefix, char *pBueffel)
|
||||
{
|
||||
char pToken[30], pValue[20];
|
||||
char pToken[30], pValue[20], pEntry[80];
|
||||
char *pPtr, *pTok, *pVal;
|
||||
int iCount, iRet;
|
||||
pDoCho pPriv = NULL;
|
||||
@@ -110,12 +110,13 @@ static void SplitChopperReply(pCodri self, char *prefix, char *pBueffel)
|
||||
{
|
||||
pTok = trim(pToken);
|
||||
pVal = trim(pValue);
|
||||
sprintf(pToken,"%s.%s",prefix,pTok);
|
||||
iRet = StringDictUpdate(pPriv->pPar,pToken,pVal);
|
||||
pEntry[0] = '\0';
|
||||
sprintf(pEntry,"%s.%s",prefix,pTok);
|
||||
iRet = StringDictUpdate(pPriv->pPar,pEntry,pVal);
|
||||
if(!iRet)
|
||||
{
|
||||
StringDictAddPair(pPriv->pPar,pToken,pVal);
|
||||
strcat(self->pParList,pToken);
|
||||
StringDictAddPair(pPriv->pPar,pEntry,pVal);
|
||||
strcat(self->pParList,pEntry);
|
||||
strcat(self->pParList,",");
|
||||
}
|
||||
}
|
||||
@@ -124,14 +125,14 @@ static void SplitChopperReply(pCodri self, char *prefix, char *pBueffel)
|
||||
/* this fixes a bug with oversized messages in dphas */
|
||||
if(strstr(pPtr,"dphas") != NULL)
|
||||
{
|
||||
sprintf(pToken,"%s.dphas",prefix);
|
||||
sprintf(pEntry,"%s.dphas",prefix);
|
||||
iRet = StringDictUpdate(pPriv->pPar,
|
||||
pToken,pPtr+5);
|
||||
pEntry,pPtr+5);
|
||||
if(!iRet)
|
||||
{
|
||||
StringDictAddPair(pPriv->pPar,pToken,
|
||||
StringDictAddPair(pPriv->pPar,pEntry,
|
||||
pPtr+5);
|
||||
strcat(self->pParList,pToken);
|
||||
strcat(self->pParList,pEntry);
|
||||
strcat(self->pParList,",");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user