[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/Xsharp XsharpSupport.c,1.5,1.6
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/Xsharp XsharpSupport.c,1.5,1.6 |
Date: |
Tue, 24 Jun 2003 14:30:47 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/Xsharp
In directory subversions:/tmp/cvs-serv20121/Xsharp
Modified Files:
XsharpSupport.c
Log Message:
Fix minor segfault when missing X Font families
Index: XsharpSupport.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/XsharpSupport.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** XsharpSupport.c 14 Jun 2003 09:50:51 -0000 1.5
--- XsharpSupport.c 24 Jun 2003 18:30:44 -0000 1.6
***************
*** 106,110 ****
/* Create a buffer big enough to hold the base XLFD */
! name = (char *)malloc(strlen(family) + 128);
if(!name)
{
--- 106,110 ----
/* Create a buffer big enough to hold the base XLFD */
! name = (char *)malloc((family ? strlen(family) : 1) + 128);
if(!name)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/Xsharp XsharpSupport.c,1.5,1.6,
Gopal.V <address@hidden> <=