new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / shared / tests / string_test.c
1 #include <stdio.h>
2 #include <string.h>
3
4 #include "string_op.h"
5
6
7 int main(int argc, char **argv)
8 {
9     int i = 0;
10     char *tmp;
11     char buf[] = "/var/www/html/Testing This Interface$%^&*().txt";
12
13     tmp = os_shell_escape(buf);
14     char clean[] = "/var/www/html/index.html";
15
16     printf("Sent: '%s'\n", buf);
17     printf("Fixed: '%s'\n", tmp);
18     free(tmp);
19
20     tmp = os_shell_escape(clean);
21     printf("Sent: '%s'\n", clean);
22     printf("Fixed: '%s'\n", tmp);
23
24     return (0);
25 }
26