Branch: Tag:

2016-02-24

2016-02-24 11:47:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Fixed support for second argument to set_buffer().

Fixes [CID 1353480].

4012:       if(FD==-1)    Pike_error("Stdio.File->set_buffer() on closed file.\n"); -  if(args!=1) +  if(args<1)    SIMPLE_WRONG_NUM_ARGS_ERROR("set_buffer", 1); -  +  if(args>2) +  SIMPLE_WRONG_NUM_ARGS_ERROR("set_buffer", 2);    if(TYPEOF(Pike_sp[-args]) != PIKE_T_INT)    SIMPLE_ARG_TYPE_ERROR("set_buffer", 1, "int");