Changeset 55a4578 for owl.c


Ignore:
Timestamp:
Sep 27, 2002, 5:50:27 PM (19 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
486688f
Parents:
55faab7
Message:
Some changes to the (still broken) newmsg stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r700c712 r55a4578  
    350350        /* if it exited, fork & exec a new one */
    351351        if (owl_global_get_newmsgproc_pid(&g)==0) {
    352           int i, argc;
     352          int i, myargc;
    353353          i=fork();
    354354          if (i) {
     
    360360            /* child exec's the program */
    361361            char **parsed;
    362            
    363             parsed=owl_parseline(owl_global_get_newmsgproc(&g), &argc);
     362            parsed=owl_parseline(owl_global_get_newmsgproc(&g), &myargc);
    364363            parsed=realloc(parsed, strlen(owl_global_get_newmsgproc(&g)+300));
    365             parsed[argc]='\0';
    366 
    367             owl_function_debugmsg("About to exec: -%s- with %i arguments", parsed[0], argc);
    368 
    369             execvp(*parsed, parsed);
     364            parsed[myargc]=(char *) NULL;
     365
     366            owl_function_debugmsg("About to exec: %s with %i arguments", parsed[0], myargc);
     367
     368            execvp(parsed[0], (char **) parsed);
    370369           
    371370
Note: See TracChangeset for help on using the changeset viewer.