diff options
author | Jeremy Allison <jra@samba.org> | 1997-09-26 18:55:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-09-26 18:55:29 +0000 |
commit | e7eb1f044d3101679dc7a118820ea5efe0cd837c (patch) | |
tree | 08728855970cb96ca587b1bf241304f579d85c22 /source/printing/pcap.c | |
parent | 2c5587a6fe425b1cc57cf28e92e77ba84f08ce33 (diff) | |
download | samba-e7eb1f044d3101679dc7a118820ea5efe0cd837c.tar.gz samba-e7eb1f044d3101679dc7a118820ea5efe0cd837c.tar.xz samba-e7eb1f044d3101679dc7a118820ea5efe0cd837c.zip |
Adding Andrews buffer overflow fixes into the main branch.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/printing/pcap.c')
-rw-r--r-- | source/printing/pcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/printing/pcap.c b/source/printing/pcap.c index 549ebcd70df..65195ab1af6 100644 --- a/source/printing/pcap.c +++ b/source/printing/pcap.c @@ -358,8 +358,8 @@ void pcap_printer_fn(void (*fn)()) if (strlen(p) <= 8 && strlen(p)>strlen(name) && !has_punctuation) { - if (!*comment) strcpy(comment,name); - strcpy(name,p); + if (!*comment) pstrcpy(comment,name); + pstrcpy(name,p); continue; } |