pStr[-1] = 0;
how is this even possible?*(pStr - 1) = 0
a[b]
is just sugar for *(a+b)
5["abcdefghijkl"]
being possible Cl_StartInfo
SendDummyInfo
Cl_StartInfo
Cl_Capabilities
once and only before Cl_StartInfo
!m_IsReady
Cl_Capabilities
src/game/server/ddracecommands.cpp:743:39: warning: unknown conversion type character ‘l’ in format [-Wformat=]
743 | str_format(aBuf, sizeof(aBuf), "%s-%lld-%s.save", pSelf->Server()->GetMapName(), time_get(), pSelf->Server()->GetAuthName(pResult->m_ClientID));
str_format
, which is marked as taking a format argumentstr_format
, I thought the warning came from there+
) on skins are still used for anything? including outside of DDRace/spec
should be displayed like?
https://github.com/ddnet/ddnet/pull/2309#issuecomment-647612108Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000564005314ee7 in CPlayer::Snap (this=0x5640053efcf8 <ms_PoolDataCPlayer+10296>, SnappingClient=SnappingClient@entry=4) at /home/teeworlds/src/master/src/game/server/gamecontext.h:122
122 IServer *Server() const { return m_pServer; }
[Current thread is 1 (Thread 0x7f055fe0bdc0 (LWP 1095))]
(gdb) bt
#0 0x0000564005314ee7 in CPlayer::Snap (this=0x5640053efcf8 <ms_PoolDataCPlayer+10296>, SnappingClient=SnappingClient@entry=4) at /home/teeworlds/src/master/src/game/server/gamecontext.h:122
#1 0x0000564005301148 in CGameContext::OnSnap (this=0x7f055d809010, ClientID=4) at /home/teeworlds/src/master/src/game/server/gamecontext.cpp:3331
#2 0x00005640052d90d3 in CServer::DoSnapshot (this=this@entry=0x7f055f03f010) at /home/teeworlds/src/master/src/engine/server/server.h:119
#3 0x00005640052dfb2d in CServer::Run (this=this@entry=0x7f055f03f010) at /home/teeworlds/src/master/src/engine/server/server.cpp:2508
#4 0x00005640052d23c6 in main (argc=3, argv=0x7ffdddd56d28) at /home/teeworlds/src/master/src/engine/server/server.cpp:3525
IServer
which sounded impossible"foobar"
, it would look like """foobar"""
in the escaped form\n
\n
is long lost when we get to a compiled binaryCSaveTee::save()
?(gdb) call (CSaveTeam *)malloc(sizeof(CSaveTeam))
$7 = (CSaveTeam *) 0x7ffff7f72000
(gdb) print (((CGameContext *)GameServer())->m_pController)
$8 = (IGameController *) 0x5555557dbab0
(gdb) call 'CSaveTeam::CSaveTeam(IGameController*)'($7, ((CGameContext *)GameServer())->m_pController)
(gdb) print $7
$9 = (CSaveTeam *) 0x7ffff7f72000
(gdb) print ($7)->save(1)
$10 = 0
(gdb) print ($7)->GetString()
$11 = 0x7ffff7f72010 "2\t2\t1\t1\t0\nheinrich5991\t1\t0\t0\t0\t0\t0\t-1\t0\t1\t0\t-1\t0\t1\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t0\t-1\t0\t0\t0\t0\t2352\t0\t0\t1\t0\t1\t0\t0\t1\t3453\t686\t1329\t686\t1329\t0\t0\t686\t1329\t0.000000\t0.000000\t1\t0\t0\t2\t686\t1329\t0.000000\t0.0"...
(gdb)
@Learath2