File cdp-0.33.13-getline.diff of Package cdp

--- getline.c
+++ getline.c
@@ -160,10 +160,10 @@
     if   ( info.pw == NULL ) 
         return   GETLINE_ERR;
 
-    info.text = malloc( strSize + strlen( lpszDef ) + 256 );
+    info.text = malloc( strSize + (lpszDef?strlen( lpszDef ):0) + 256 );
     if  ( info.text == NULL )
         return   GETLINE_ERR;
-    strcpy( info.text, lpszDef );
+    strcpy( info.text, lpszDef?lpszDef:"" );
     info.textLen = strlen( info.text );
     info.fDefault = TRUE;
     info.strSize = strSize;