Skip to content

Commit

Permalink
use const char* to store output of SBStream.GetData
Browse files Browse the repository at this point in the history
  • Loading branch information
arifogel committed May 23, 2018
1 parent 7e5902b commit 2cd04b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.cpp
Expand Up @@ -1097,7 +1097,7 @@ fromCDT (STATE *pstate, const char *commandLine, int linesize) // from cdt
if (strcasecmp(valtype.GetName(), "char *") == 0) {
SBStream s;
val.GetDescription(s);
char *str = strchr(s.GetData(), '=');
const char *str = strchr(s.GetData(), '=');
str = str+2;
cdtprintf ("%d^done,value=\"%s\"\n(gdb)\n", cc.sequence, str);
}
Expand Down

0 comments on commit 2cd04b6

Please sign in to comment.