]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix bug that removes language instead of country code 5950/head
authorAlfonso Gregory <83477269+AtariDreams@users.noreply.github.com>
Mon, 30 Aug 2021 19:06:40 +0000 (15:06 -0400)
committerAlfonso Gregory <83477269+AtariDreams@users.noreply.github.com>
Mon, 30 Aug 2021 19:08:06 +0000 (15:08 -0400)
scheduler/client.c

index 479b70aed86ebde7e27a39efb134406db4214c76..ba54117e684759d30b2d03fea2059a28adc00273 100644 (file)
@@ -1,8 +1,9 @@
 /*
  * Client routines for the CUPS scheduler.
  *
- * Copyright © 2007-2019 by Apple Inc.
- * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
+ * Copyright © 2021 by OpenPrinting.
+ * Copyright © 2007-2019 by Apple Inc.
+ * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
  * This file contains Kerberos support code, copyright 2006 by
  * Jelmer Vernooij.
@@ -2933,7 +2934,7 @@ get_file(cupsd_client_t *con,             /* I  - Client connection */
        */
 
        if (language[3])
-         language[0] = '\0';           /* Strip country code */
+         language[3] = '\0';           /* Strip country code */
        else
          language[0] = '\0';           /* Strip language */
       }