diff options
Diffstat (limited to 'src/base/cmd')
-rw-r--r-- | src/base/cmd/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/cmd/cmd.c b/src/base/cmd/cmd.c index 161cd090..e594c65a 100644 --- a/src/base/cmd/cmd.c +++ b/src/base/cmd/cmd.c @@ -370,7 +370,7 @@ int CmdCommandHistory( Abc_Frame_t * pAbc, int argc, char **argv ) // iRepeat = atoi(argv[globalUtilOptind]); // print the commands if ( iRepeat >= 0 && iRepeat < Vec_PtrSize(pAbc->aHistory) ) - fprintf( pAbc->Out, "%s", Vec_PtrEntry(pAbc->aHistory, Vec_PtrSize(pAbc->aHistory)-1-iRepeat) ); + fprintf( pAbc->Out, "%s", (char *)Vec_PtrEntry(pAbc->aHistory, Vec_PtrSize(pAbc->aHistory)-1-iRepeat) ); else if ( nPrints > 0 ) Vec_PtrForEachEntryStart( char *, pAbc->aHistory, pName, i, Abc_MaxInt(0, Vec_PtrSize(pAbc->aHistory)-nPrints) ) fprintf( pAbc->Out, "%2d : %s\n", Vec_PtrSize(pAbc->aHistory)-i, pName ); |