Show
Ignore:
Timestamp:
02/08/08 15:52:45 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1202485965 +0000
git-parent:

[234b2c6fe5e8099b7e55ae9a395d81c0dca51ec0]

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

And make it all work on OpenBSD (ld -E ? sigh...)

Files:

Legend:

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

    r234b2c6 r1d69a01  
    409409        if (el->el_term.t_loc + 3 < TC_BUFSIZE) { 
    410410                                                /* XXX strcpy is safe */ 
    411                 (void) strcpy(*str = &el->el_term.t_buf[el->el_term.t_loc], 
    412                     cap); 
     411                (void) strlcpy(*str = &el->el_term.t_buf[el->el_term.t_loc], 
     412                    cap, TC_BUFSIZE - el->el_term.t_loc); 
    413413                el->el_term.t_loc += clen + 1;  /* one for \0 */ 
    414414                return;