diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-03 15:47:30 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-03 15:47:30 -0800 |
commit | a22487025d20c6683f24fe3c5bb35b555d064523 (patch) | |
tree | 0aa147eb41c67e025c3351ca3c989abce1ea8629 /source3 | |
parent | b9342eaaa6bf61f559e4173d7ea58acc1a0a9705 (diff) | |
download | samba-a22487025d20c6683f24fe3c5bb35b555d064523.tar.gz samba-a22487025d20c6683f24fe3c5bb35b555d064523.tar.bz2 samba-a22487025d20c6683f24fe3c5bb35b555d064523.zip |
Fix the build. fstrterminate was used in one place.
Jeremy.
(This used to be commit 0ccd87c56b34bdc34c73d700d21544fe269f9141)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/lpq_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/lpq_parse.c b/source3/printing/lpq_parse.c index 09f630e464..d4520b04ba 100644 --- a/source3/printing/lpq_parse.c +++ b/source3/printing/lpq_parse.c @@ -179,7 +179,7 @@ static bool parse_lpq_bsd(char *line,print_queue_struct *buf,bool first) fstrcat(buf->fs_file, tok[i]); } /* Ensure null termination. */ - fstrterminate(buf->fs_file); + buf->fs_file[sizeof(buf->fs_file)-1] = '\0'; } #ifdef PRIOTOK @@ -314,7 +314,7 @@ static bool parse_lpq_lprng(char *line,print_queue_struct *buf,bool first) fstrcat(buf->fs_file, tokarr[i]); } /* Ensure null termination. */ - fstrterminate(buf->fs_file); + buf->fs_file[sizeof(buf->fs_file)-1] = '\0'; } return True; |