- typo in documentation
[oweals/busybox.git] / editors / sed.c
index a0a127e2b758f396cbccc320998e97e9e49a5e3d..3b0cebda6b3609c5aa36143efe2247005e50cc98 100644 (file)
 
 #include <stdio.h>
 #include <unistd.h>            /* for getopt() */
-#include <regex.h>
 #include <string.h>            /* for strdup() */
 #include <errno.h>
 #include <ctype.h>             /* for isspace() */
 #include <stdlib.h>
 #include "busybox.h"
+#include "xregex.h"
 
 typedef struct sed_cmd_s {
     /* Ordered by alignment requirements: currently 36 bytes on x86 */
@@ -1025,6 +1025,7 @@ restart:
                                                        for (j = 0; sed_cmd->string[j]; j += 2) {
                                                                if (pattern_space[i] == sed_cmd->string[j]) {
                                                                        pattern_space[i] = sed_cmd->string[j + 1];
+                                                                       break;
                                                                }
                                                        }
                                                }