Changeset 195b6deb309ee2b12b47ac368b50d3ab720e3bf4

Show
Ignore:
Timestamp:
08/12/08 00:52:28 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1218502348 +0000
git-parent:

[dafb53298e4bc9ec88942a4ecaf61afe595e849a]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1218502348 +0000
Message:

strlcpy will run over by one here. refs #51

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/stratcon_datastore.c

    rdcd539d r195b6de  
    132132  char *dst; 
    133133  dst = malloc(len + 1); 
    134   strlcpy(dst, src, len+1); 
     134  strlcpy(dst, src, len); 
     135  dst[len] = '\0'; 
    135136  return dst; 
    136137}