Module Name:    src
Committed By:   enami
Date:           Wed Jun  3 23:15:22 UTC 2015

Modified Files:
        src/usr.bin/gettext: gettext.c

Log Message:
Fix expand() to process successive escape sequences correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/gettext/gettext.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/gettext/gettext.c
diff -u src/usr.bin/gettext/gettext.c:1.1 src/usr.bin/gettext/gettext.c:1.2
--- src/usr.bin/gettext/gettext.c:1.1	Wed Jun  3 14:32:17 2015
+++ src/usr.bin/gettext/gettext.c	Wed Jun  3 23:15:22 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: gettext.c,v 1.1 2015/06/03 14:32:17 christos Exp $	*/
+/*	$NetBSD: gettext.c,v 1.2 2015/06/03 23:15:22 enami Exp $	*/
 
 /*-
  * Copyright (c) 2015 William Orr <w...@worrbase.com>
@@ -26,7 +26,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: gettext.c,v 1.1 2015/06/03 14:32:17 christos Exp $");
+__RCSID("$NetBSD: gettext.c,v 1.2 2015/06/03 23:15:22 enami Exp $");
 
 #include <err.h>
 #include <errno.h>
@@ -116,6 +116,7 @@ expand(char *str)
 				*sp++ = '\\';
 				break;
 			}
+			continue;
 		}
 		*sp++ = *fp++;
 	}

Reply via email to