aports/main/expect/24-format.patch
Alex Xu (Hello71) 85374e9406 main/expect: add some debian patches
code quality is still awful but hopefully works slightly better now?

fixes 
2021-08-09 08:50:34 +00:00

24 lines
573 B
Diff

--- a/exp_clib.c
+++ b/exp_clib.c
@@ -1483,8 +1483,8 @@
char *str;
{
if (exp_is_debugging) {
- fprintf(stderr,str);
- if (exp_logfile) fprintf(exp_logfile,str);
+ fprintf(stderr,"%s",str);
+ if (exp_logfile) fprintf(exp_logfile,"%s",str);
}
}
--- a/exp_command.c
+++ b/exp_command.c
@@ -995,7 +995,7 @@
exp_slave_control(master,1);
- sprintf(value,"%d",esPtr->fd_slave);
+ sprintf(value,"%ld",esPtr->fd_slave);
Tcl_SetVar2(interp,SPAWN_OUT,"slave,fd",value,0);
}
Tcl_SetObjResult (interp, Tcl_NewIntObj (EXP_NOPID));