Browse Source

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

This fixes a warning with -Wformat-security.
Guillem Jover 15 years ago
parent
commit
4c3faede97
1 changed files with 1 additions and 1 deletions
  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)
 printversion(const struct cmdinfo *ci, const char *value)
 {
 {
   printf(gettext(programdesc), DSELECT, DPKG_VERSION_ARCH);
   printf(gettext(programdesc), DSELECT, DPKG_VERSION_ARCH);
-  printf(gettext(copyrightstring));
+  printf("%s", gettext(copyrightstring));
   printf(gettext(licensestring), DSELECT);
   printf(gettext(licensestring), DSELECT);
 
 
   m_output(stdout, _("<standard output>"));
   m_output(stdout, _("<standard output>"));