Skip to content

Commit

Permalink
Use cupsCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
zdohnal committed Mar 18, 2024
1 parent a22897d commit 2701790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pappl/client-ipp.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ _papplClientProcessIPP(
client->job = NULL;

if ((attr = ippFindAttribute(client->request, "requesting-user-name", IPP_TAG_NAME)) != NULL)
papplCopyString(client->username, ippGetString(attr, 0, NULL), sizeof(client->username));
cupsCopyString(client->username, ippGetString(attr, 0, NULL), sizeof(client->username));

if (charset && strcasecmp(ippGetString(charset, 0, NULL), "us-ascii") && strcasecmp(ippGetString(charset, 0, NULL), "utf-8"))
{
Expand Down

0 comments on commit 2701790

Please sign in to comment.