~peter-pearse/ubuntu/natty/unzip/prop001

« back to all changes in this revision

Viewing changes to unzpriv.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-02-15 12:11:47 UTC
  • Revision ID: james.westby@ubuntu.com-20060215121147-uuc4y12hj5izvnn8
Tags: 5.52-6ubuntu3
Previous security update scrambled the output fields in the contents
listing, fix that regression.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2281
2281
 *               (char *)(sprintf sprf_arg, (buf))) == EOF)
2282
2282
 */
2283
2283
#ifndef Info   /* may already have been defined for redirection */
2284
 
 
2285
2284
#  define wsizesnprintf(buf, ...) snprintf (buf, WSIZE-1, __VA_ARGS__)
2286
 
 
2287
 
#  define Info(buf,flag,sprf_arg) \
 
2285
#  ifdef FUNZIP
 
2286
#    define Info(buf,flag,sprf_arg) \
2288
2287
     fputs((char *)(wsizesnprintf sprf_arg, (buf)), (flag)&1? stderr : stdout)
 
2288
#  else
 
2289
#    ifdef INT_SPRINTF  /* optimized version for "int sprintf()" flavour */
 
2290
#      define Info(buf,flag,sprf_arg) \
 
2291
       (*G.message)((zvoid *)&G, (uch *)(buf), (ulg)wsizesnprintf sprf_arg, (flag))
 
2292
#    else          /* generic version, does not use sprintf() return value */
 
2293
#      define Info(buf,flag,sprf_arg) \
 
2294
       (*G.message)((zvoid *)&G, (uch *)(buf), \
 
2295
                     (ulg)(wsizesnprintf sprf_arg, strlen((char *)(buf))), (flag))
 
2296
#    endif
 
2297
#  endif
2289
2298
#endif /* !Info */
2290
2299
 
2291
2300
/*  The following macro wrappers around the fnfilter function are used many