changeset 1399:1b2b2711c1a8 draft

Fix parsing of escape codes.
author Roy Marples <roy@marples.name>
date Tue, 01 Sep 2009 20:37:34 +0000
parents 51f62c97d6f3
children 93b21640a4eb
files if-options.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/if-options.c	Tue Sep 01 07:45:11 2009 +0000
+++ b/if-options.c	Tue Sep 01 20:37:34 2009 +0000
@@ -203,20 +203,24 @@
 		}
 		if (*str == '\\') {
 			str++;
-			switch(*str++) {
+			switch(*str) {
 			case '\0':
 				break;
 			case 'b':
 				*sbuf++ = '\b';
+				str++;
 				break;
 			case 'n':
 				*sbuf++ = '\n';
+				str++;
 				break;
 			case 'r':
 				*sbuf++ = '\r';
+				str++;
 				break;
 			case 't':
 				*sbuf++ = '\t';
+				str++;
 				break;
 			case 'x':
 				/* Grab a hex code */