Changeset dfe5829 for commands.c


Ignore:
Timestamp:
Feb 4, 2011, 3:49:44 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
d3c318b
Parents:
fc7481a
git-author:
David Benjamin <davidben@mit.edu> (01/24/11 19:44:34)
git-committer:
David Benjamin <davidben@mit.edu> (02/04/11 15:49:44)
Message:
Be more accurate in allocating argument vector in owl_command_view

50 is a pretty random number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    re06f413 rdfe5829  
    21502150    int i;
    21512151
    2152     myargv=owl_malloc((argc*sizeof(const char *))+50);
     2152    /* Allocate one more than argc for the trailing NULL. */
     2153    myargv = g_new0(const char*, argc+1);
    21532154    myargv[0]="";
    21542155    myargv[1]="owl-dynamic";
Note: See TracChangeset for help on using the changeset viewer.