24 lines
788 B
Plaintext
24 lines
788 B
Plaintext
$OpenBSD: patch-src_slurpie_c,v 1.2 2017/05/06 17:23:10 naddy Exp $
|
|
Index: src/slurpie.c
|
|
--- src/slurpie.c.orig
|
|
+++ src/slurpie.c
|
|
@@ -129,7 +129,8 @@ u_char *send_init( u_char *sendbuf, u_int *send_len )
|
|
*(pstr++) = (u_char)cfg.cl;
|
|
if( cfg.cl & CL_PDICT )
|
|
{
|
|
- *(pstr++) = (u_char)cfg.ptask_level = *num_nodes*PTASK_LEVEL;
|
|
+ cfg.ptask_level = *num_nodes*PTASK_LEVEL;
|
|
+ *(pstr++) = (u_char)cfg.ptask_level;
|
|
pstr += strcpy_len( pstr, cfg.dictfile_name );
|
|
}
|
|
if( cfg.cl & CL_GDICT )
|
|
@@ -378,7 +379,7 @@ void print( const u_char *str, ... )
|
|
vsprintf(tbuf,str,parg);
|
|
va_end(parg);
|
|
if( cfg.cl & CL_VERBOSE )
|
|
- printf( tbuf );
|
|
+ printf( "%s", tbuf );
|
|
if( cfg.logfile && !(cfg.cl & CL_NO_LOG) )
|
|
fputs( tbuf, cfg.logfile );
|
|
}
|