ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.xs
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.146 by sf-exg, Mon Dec 5 12:52:57 2011 UTC vs.
Revision 1.148 by root, Sat Dec 17 23:17:33 2011 UTC

920 CODE: 920 CODE:
921{ 921{
922 rxvt_term *term = new rxvt_term; 922 rxvt_term *term = new rxvt_term;
923 923
924 stringvec *argv = new stringvec; 924 stringvec *argv = new stringvec;
925 stringvec *envv = new stringvec;
926
927 for (int i = 0; i <= AvFILL (arg); i++) 925 for (int i = 0; i <= AvFILL (arg); i++)
928 argv->push_back (strdup (SvPVbyte_nolen (*av_fetch (arg, i, 1)))); 926 argv->push_back (strdup (SvPVbyte_nolen (*av_fetch (arg, i, 1))));
929 927
928 stringvec *envv = new stringvec;
930 for (int i = AvFILL (env) + 1; i--; ) 929 for (int i = AvFILL (env) + 1; i--; )
931 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1)))); 930 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1))));
932
933 envv->push_back (0);
934 931
935 try 932 try
936 { 933 {
937 term->init (argv, envv); 934 term->init (argv, envv);
938 } 935 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines