diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-04 11:38:26 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:15 -0700 |
commit | 8380835fc6de38706d9af29dc7f0fa4cec4f9c90 (patch) | |
tree | 5fdf238d5573c022a135e3f2e5590b656b0d64bf /source3/printing | |
parent | df023b8657cab232df88d3656aa5d87676bb7254 (diff) | |
download | samba-8380835fc6de38706d9af29dc7f0fa4cec4f9c90.tar.gz samba-8380835fc6de38706d9af29dc7f0fa4cec4f9c90.tar.bz2 samba-8380835fc6de38706d9af29dc7f0fa4cec4f9c90.zip |
Fix warning messages caused by addition of null check in fstrcpy macro.
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/lpq_parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/lpq_parse.c b/source3/printing/lpq_parse.c index 16b9b09fef..9104497f9f 100644 --- a/source3/printing/lpq_parse.c +++ b/source3/printing/lpq_parse.c @@ -801,8 +801,9 @@ static bool parse_lpq_plp(char *line,print_queue_struct *buf,bool first) fstring tmp; char *p = strrchr_m(tok[6],'/'); if (p) { + size_t len = strlen(tok[6])+1; fstrcpy(tmp,p+1); - fstrcpy(tok[6],tmp); + strlcpy(tok[6],tmp, len); } } |