Skip to content

Commit

Permalink
Fixed a format-string vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
threadexio committed Jul 12, 2021
1 parent f44a5de commit 3780f06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/deb/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: kbd-backlight
Version: VERSION_NUMBER
Version: 1-VERSION_NUMBER
Section: utils
Priority: optional
Essential: no
Expand Down
1 change: 1 addition & 0 deletions packages/rpm/package.spec
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ Simple C program to control the keyboard backlight on the Lenovo Legion Y720
/usr/local/bin/kbd-backlight
/etc/kbd-backlight/backlight.conf
/usr/lib/systemd/system/kbd-backlight.service
/usr/share/kbd-backlight/backlight.conf.default
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) {
// Another config file was specified from argv
if (c_AltConfPath) {
if (fileExists(c_AltConfPath))
snprintf(c_FinalConfPath, CPATH_MAX_LEN, c_AltConfPath);
snprintf(c_FinalConfPath, CPATH_MAX_LEN, "%s", c_AltConfPath);
} else {
// Check if ~/.config/kbd-backlight.conf exists
snprintf(
Expand Down

0 comments on commit 3780f06

Please sign in to comment.