]> git.pld-linux.org Git - packages/a2ps.git/commitdiff
- fixed possible SEGV (by Marcin Krol)
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 17 May 2004 20:52:35 +0000 (20:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    a2ps-autoenc.patch -> 1.2

a2ps-autoenc.patch

index 5e3e08f3ea04798aafd39cb0675ef878e755d9c4..674501a36654308aac29679b82e0d67f0525a495 100644 (file)
@@ -33,7 +33,7 @@
    style_sheets = new_style_sheets ();
 +
 +  /* Process special case: Japanese Document */
-+  if (! strncmp (locale, "ja", 2) )
++  if ((locale != NULL) && ! strncmp (locale, "ja", 2) )
 +    job->requested_encoding_name = xstrdup ("euc-jp");
  
    /* Process the command line options. */
This page took 0.143519 seconds and 4 git commands to generate.