Projects
home:Eustace:branches:Eulaceura:Factory
barcode
_service:obs_scm:fix-Werror-format-security.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:fix-Werror-format-security.patch of Package barcode
From 2deb518442c205b5b649958c02945c72613ebcbc Mon Sep 17 00:00:00 2001 From: herengui <herengui@uniontech.com> Date: Tue, 23 Nov 2021 14:26:47 +0800 Subject: [PATCH] fix -Werror=format-security related build failure --- plessey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plessey.c b/plessey.c index 2f59e39..3089a3c 100644 --- a/plessey.c +++ b/plessey.c @@ -149,7 +149,7 @@ int Barcode_pls_encode(struct Barcode_Item *bc) checkptr[i+j] ^= check[j]; } for (i = 0; i < 8; i++) { - sprintf(ptr, patterns[checkptr[strlen(text) * 4 + i]]); + sprintf(ptr, "%s", patterns[checkptr[strlen(text) * 4 + i]]); ptr += 2; } fprintf(stderr, _("CRC: ")); -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2