summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/lpq_parse.c4
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;