[Libpst-commits] r54 - trunk

Joseph Nahmias jello at alioth.debian.org
Thu Dec 7 06:42:27 CET 2006


Author: jello
Date: 2006-12-07 06:42:27 +0100 (Thu, 07 Dec 2006)
New Revision: 54

Modified:
   trunk/readpst.c
Log:
rfc2426_escape(): fix handling of escaped characters

Modified: trunk/readpst.c
===================================================================
--- trunk/readpst.c	2006-12-07 05:37:07 UTC (rev 53)
+++ trunk/readpst.c	2006-12-07 05:42:27 UTC (rev 54)
@@ -1426,15 +1426,15 @@
       case ',' :
       case '\\':
       case ';' :
-	    *(b++) = '\\', *b = *a;	// escape with a '\\'
-	    break;
+	      *b++ = '\\', *b = *a;	// escape with a '\\'
+	      break;
       case '\n':	// newlines are encoded as "\n"
-	    *(b++) = '\\', *b = 'n';
-	    break;
+	      *b++ = '\\', *b = 'n';
+	      break;
       case '\r': // skip carriage returns
-	    break;
+	      break;
       default:
-	    *b = *a;
+	      *b = *a;
 	}
   *b = '\0'; // NUL-terminate the string (buf)
 




More information about the Libpst-commits mailing list