Small patch for libxtrans

Kean Johnston kean at armory.com
Wed Jul 18 09:09:22 PDT 2007


While debugging the XDisplayName() issue I reported yesterday I also
found this small problem in libxtrans. Patch below.

index ef846a4..9b83bb3 100644
--- a/Xtranslcl.c
+++ b/Xtranslcl.c
@@ -846,7 +846,7 @@ #else
                             NAMEDNODENAME, port);
         }
      } else {
-       (void) sprintf(server_path, sizeof(server_path), "%s%ld",
+       (void) snprintf(server_path, sizeof(server_path), "%s%ld",
                        NAMEDNODENAME, (long)getpid());
      }




More information about the xorg mailing list