summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-07 04:20:00 +0000
committerTim Potter <tpot@samba.org>1999-04-07 04:20:00 +0000
commitbc40376caa1e828b9e739cd94e46387e0eaf7652 (patch)
tree108e091990209c0f911b9c78a7685e8b7c803c2e /source3
parentbc973ffbddc96e0b43edae2df1f8240bb25789b6 (diff)
downloadsamba-bc40376caa1e828b9e739cd94e46387e0eaf7652.tar.gz
samba-bc40376caa1e828b9e739cd94e46387e0eaf7652.tar.bz2
samba-bc40376caa1e828b9e739cd94e46387e0eaf7652.zip
Changed calls to strncat() to safe_strcat(). Fix from SAMBA_2_0 branch.
(This used to be commit 2d2c5ae7cd610b0d97151f90ad5ac7f4e41e514d)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index c38808ab7e..dc28f17615 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -263,8 +263,8 @@ static BOOL parse_lpq_bsd(char *line,print_queue_struct *buf,BOOL first)
bufsize = sizeof(buf->file) - strlen(buf->file) - 1;
for (i = (FILETOK + 1); i < TOTALTOK; i++) {
- strncat(buf->file," ",bufsize);
- strncat(buf->file,tok[i],bufsize - 1);
+ safe_strcat(buf->file," ",bufsize);
+ safe_strcat(buf->file,tok[i],bufsize - 1);
bufsize = sizeof(buf->file) - strlen(buf->file) - 1;
if (bufsize <= 0) {
break;
@@ -378,8 +378,8 @@ static BOOL parse_lpq_lprng(char *line,print_queue_struct *buf,BOOL first)
bufsize = sizeof(buf->file) - strlen(buf->file) - 1;
for (i = (LPRNG_FILETOK + 1); i < LPRNG_TOTALTOK; i++) {
- strncat(buf->file," ",bufsize);
- strncat(buf->file,tokarr[i],bufsize - 1);
+ safe_strcat(buf->file," ",bufsize);
+ safe_strcat(buf->file,tokarr[i],bufsize - 1);
bufsize = sizeof(buf->file) - strlen(buf->file) - 1;
if (bufsize <= 0) {
break;