]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/testhttp.c
Merge changes from CUPS 1.7svn-r10629.
[thirdparty/cups.git] / cups / testhttp.c
index a133f823378e3c8a03f7a143bd9cfa78d05b536a..089e4d28cb970f99d271d0ec2c03daab7be073e6 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   HTTP test program for CUPS.
  *
- *   Copyright 2007-2011 by Apple Inc.
+ *   Copyright 2007-2012 by Apple Inc.
  *   Copyright 1997-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -218,7 +218,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
     fputs("httpGetDateString()/httpGetDateTime(): ", stdout);
 
     start = time(NULL);
-    strcpy(buffer, httpGetDateString(start));
+    strlcpy(buffer, httpGetDateString(start), sizeof(buffer));
     current = httpGetDateTime(buffer);
 
     i = (int)(current - start);