Sfoglia il codice sorgente

Use SDL_snprintf instead of snprintf

Anonymous Maarten 1 settimana fa
parent
commit
d61bdd3324
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/video/x11/xsettings-client.c

+ 1 - 1
src/video/x11/xsettings-client.c

@@ -508,7 +508,7 @@ xsettings_client_new_with_grab_funcs (Display             *display,
   client->manager_window = None;
   client->settings = NULL;
 
-  sprintf(buffer, "_XSETTINGS_S%d", screen);
+  SDL_snprintf(buffer, sizeof(buffer), "_XSETTINGS_S%d", screen);
   atom_names[0] = buffer;
   atom_names[1] = "_XSETTINGS_SETTINGS";
   atom_names[2] = "MANAGER";