Changeset fb7742c26c2c6ef87a9fafbc1dd594987d2ef4c9

Show
Ignore:
Timestamp:
10/23/09 01:10:14 (5 weeks ago)
Author:
Anders Kaseorg <andersk@mit.edu>
git-author:
Anders Kaseorg <andersk@mit.edu> / 2009-10-23T01:08:22Z-0400
Parents:
3c428d48282cf713201d1675e0b568003c595d46
Children:
bdbec0aacb083e63e1d0061e44722f3b1a05942f
git-committer:
Anders Kaseorg <andersk@mit.edu> / 2009-10-23T01:10:14Z-0400
Message:
owl_perlconfig_execute: Do not arbitrarily add a newline to the return.

The primary effect is that zsigs no longer get trailing newlines
introduced by commit de3f6412cb0dc1b4e1044541558395c4c1fd807c.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • perlconfig.c

    r68f358c rfb7742c  
    396396  STRLEN len; 
    397397  SV *response; 
    398   const char *preout; 
    399398  char *out; 
    400399 
     
    411410  } 
    412411 
    413   preout=SvPV(response, len); 
    414   if (len == 0 || preout[len - 1] != '\n') 
    415     out = owl_sprintf("%s\n", preout); 
    416   else 
    417     out = owl_strdup(preout); 
     412  out = owl_strdup(SvPV(response, len)); 
    418413  FREETMPS; 
    419414  LEAVE;