mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
This commit is contained in:
@@ -1875,7 +1875,7 @@ int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6)
|
||||
char pidstr[10];
|
||||
pstring cmd = "/usr/X11R6/bin/xterm -display :0 -T Panic -n Panic -e /bin/sh -c 'cat /tmp/ierrs.*.%d ; gdb /proc/%d/exe %d'";
|
||||
|
||||
slprintf(pidstr, sizeof(pidstr), "%d", sys_getpid());
|
||||
slprintf(pidstr, sizeof(pidstr)-1, "%d", sys_getpid());
|
||||
pstring_sub(cmd, "%d", pidstr);
|
||||
|
||||
if (!fn) {
|
||||
|
||||
Reference in New Issue
Block a user