Parcourir la source

dselect: Use a format string in printf() instead of only a variable

This fixes a warning with -Wformat-security.
Guillem Jover il y a 15 ans
Parent
commit
4c3faede97
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      dselect/main.cc

+ 1 - 1
dselect/main.cc

@@ -167,7 +167,7 @@ static void DPKG_ATTR_NORET
 printversion(const struct cmdinfo *ci, const char *value)
 {
   printf(gettext(programdesc), DSELECT, DPKG_VERSION_ARCH);
-  printf(gettext(copyrightstring));
+  printf("%s", gettext(copyrightstring));
   printf(gettext(licensestring), DSELECT);
 
   m_output(stdout, _("<standard output>"));