Changeset ede78d037149ae494e3f4934bac0623b9858d413

Show
Ignore:
Timestamp:
04/09/09 16:44:12 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1239295452 +0000
git-parent:

[4a80cb40b2665637f353f2f1286a1565acb58031]

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

fix truncation bug in strlcpy.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noitedit/strlcpy.c

    rbafab25 rede78d0  
    2323        if(sz >= 0) { 
    2424                strncat(dst, src, sz); 
    25                 dst[sz] = '\0'; 
     25                dst[dl+sz] = '\0'; 
    2626        } 
    2727