diff --git a/assets/semgrep_rules/client/brave-missing-break-in-switch.c b/assets/semgrep_rules/client/brave-missing-break-in-switch.c index d415eff2..d7115ffc 100644 --- a/assets/semgrep_rules/client/brave-missing-break-in-switch.c +++ b/assets/semgrep_rules/client/brave-missing-break-in-switch.c @@ -131,7 +131,7 @@ char *escape_string(char *string) switch (*cp) { case '\\': if (escape) { - *dest++ = '\'; + *dest++ = '\\'; escape = 0; } else escape = 1; @@ -151,4 +151,4 @@ int main() { printf("Hello, World!"); return 0; -} \ No newline at end of file +}