Changeset 96cdeaf for zwrite.c


Ignore:
Timestamp:
Aug 15, 2009, 1:50:17 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
01ff87d
Parents:
3b42640
git-author:
Nelson Elhage <nelhage@mit.edu> (08/15/09 13:45:13)
git-committer:
Nelson Elhage <nelhage@mit.edu> (08/15/09 13:50:17)
Message:
Fix a segfault with 'zwrite -v'.

a52d13aca9a922645adbf472d974d139c11126a4 introduced a stupid index
error that caused us to mis-compute the size of the buffer needed for
the message.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zwrite.c

    rd43edd2 r96cdeaf  
    9292      len = 0;
    9393      for (i=0;i<myargc;i++) {
    94         len += strlen(myargv[i-1]) + 1;
     94        len += strlen(myargv[i]) + 1;
    9595      }
    9696      msg = owl_malloc(len);
Note: See TracChangeset for help on using the changeset viewer.