File cups-1.2.11-testppd_filename-adapted_for_cups-1.3.9_with_fuzz0.patch of Package cups

--- systemv/cupstestppd.c.orig	2008-08-01 20:33:16.000000000 +0200
+++ systemv/cupstestppd.c	2010-08-19 16:25:26.000000000 +0200
@@ -129,6 +129,7 @@ main(int  argc,				/* I - Number of comm
   int		i, j, k, m, n;		/* Looping vars */
   int		len;			/* Length of option name */
   char		*opt;			/* Option character */
+  char		*ppdfilename;		/* Pointer to actual PPD file */
   const char	*ptr;			/* Pointer into string */
   int		files;			/* Number of files */
   int		verbose;		/* Want verbose output? */
@@ -375,6 +376,7 @@ main(int  argc,				/* I - Number of comm
 
       errors     = 0;
       ppdversion = 43;
+      ppdfilename = argv[i];
 
       if (verbose > 0)
         _cupsLangPuts(stdout,
@@ -1166,7 +1168,7 @@ main(int  argc,				/* I - Number of comm
 
       if (verbose >= 0)
       {
-        check_basics(argv[i]);
+        check_basics(ppdfilename);
 
 	if (warn & WARN_CONSTRAINTS)
 	  errors = check_constraints(ppd, errors, verbose, 1);
openSUSE Build Service is sponsored by