[BusyBox-cvs] busybox/findutils grep.c,1.78,1.79
Glenn McGrath
bug1 at busybox.net
Sun Apr 27 02:22:04 UTC 2003
Update of /var/cvs/busybox/findutils
In directory winder:/tmp/cvs-serv11415/findutils
Modified Files:
grep.c
Log Message:
Fix segfault when cleaning up
Index: grep.c
===================================================================
RCS file: /var/cvs/busybox/findutils/grep.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- grep.c 27 Apr 2003 01:50:57 -0000 1.78
+++ grep.c 27 Apr 2003 02:22:01 -0000 1.79
@@ -343,7 +343,7 @@
if (argv[optind] == NULL)
bb_show_usage();
else {
- pattern_head = llist_add_to(pattern_head, argv[optind]);
+ pattern_head = llist_add_to(pattern_head, strdup(argv[optind]));
optind++;
}
}
More information about the busybox-cvs
mailing list