changeset 644:1bbcf7b444ae libavformat

dissallow sprintf
author michael
date Wed, 12 Jan 2005 00:59:42 +0000
parents 253b5292946a
children 9fc2d2cc4608
files udp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/udp.c	Wed Jan 12 00:16:25 2005 +0000
+++ b/udp.c	Wed Jan 12 00:59:42 2005 +0000
@@ -121,7 +121,7 @@
     const char *node = 0, *service = 0;
 
     if (port > 0) {
-        sprintf(sport, "%d", port);
+        snprintf(sport, sizeof(sport), "%d", port);
         service = sport;
     }
     if ((hostname) && (hostname[0] != '\0') && (hostname[0] != '?')) {