summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2021-08-30 16:09:31 -0400
committerGitHub <noreply@github.com>2021-08-30 16:09:31 -0400
commitd372f8b8d5a50bcebbdb9ca097bdc8beeb984cb4 (patch)
treecbebfbd101da733f5308c0405995106311c1cfde
parent67654f6346ec8b510cc7889a19409983dbfc6b7d (diff)
parent630267c66bb22e6b5835975cffd63e6cd76fa05e (diff)
downloadcups-d372f8b8d5a50bcebbdb9ca097bdc8beeb984cb4.tar.gz
Merge pull request #5950 from AtariDreams/langcode
Fix bug that removes language instead of country code
-rw-r--r--scheduler/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/scheduler/client.c b/scheduler/client.c
index 479b70aed..ba54117e6 100644
--- a/scheduler/client.c
+++ b/scheduler/client.c
@@ -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 */
}