[prev in list] [next in list] [prev in thread] [next in thread]
List: licq-cvs
Subject: [Licq-cvs] licq/src
From: Jon Keating <emostar () users ! sourceforge ! net>
Date: 2003-05-31 0:52:06
[Download RAW message or body]
Update of /cvsroot/licq/licq/src
In directory sc8-pr-cvs1:/tmp/cvs-serv25695
Modified Files:
icqpacket.cpp
Log Message:
Fix a format string vuneralbility
Index: icqpacket.cpp
===================================================================
RCS file: /cvsroot/licq/licq/src/icqpacket.cpp,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- icqpacket.cpp 24 May 2003 12:26:43 -0000 1.87
+++ icqpacket.cpp 31 May 2003 00:52:04 -0000 1.88
@@ -2782,7 +2782,7 @@
char szStatebuf[6];
szStatebuf[5] = '\0';
- snprintf(szStatebuf, 5, szState);
+ snprintf(szStatebuf, 5, "%s", szState);
int packetSize = 2+2+2+4+2+2+2 + strlen_safe(szCity) + strlen_safe(szStatebuf) + \
strlen_safe(szPhoneNumber) +
strlen_safe(szFaxNumber) + strlen_safe(szAddress) + strlen_safe(szZip) + 2 + \
strlen_safe(szName) +
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Licq-cvs mailing list
Licq-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/licq-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic