The branch, v3-2-test has been updated
       via  0ccd87c56b34bdc34c73d700d21544fe269f9141 (commit)
      from  e72bce5b62fb0a9d0ff4a3d76490219994f303cf (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 0ccd87c56b34bdc34c73d700d21544fe269f9141
Author: Jeremy Allison <[EMAIL PROTECTED]>
Date:   Mon Dec 3 15:47:30 2007 -0800

    Fix the build. fstrterminate was used in one place.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/printing/lpq_parse.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/printing/lpq_parse.c b/source/printing/lpq_parse.c
index 09f630e..d4520b0 100644
--- a/source/printing/lpq_parse.c
+++ b/source/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;


-- 
Samba Shared Repository

Reply via email to