projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d7abe1
)
Formerly ../string/tester.c.~9~
author
roland
<roland>
Wed, 21 Apr 1993 20:36:19 +0000
(20:36 +0000)
committer
roland
<roland>
Wed, 21 Apr 1993 20:36:19 +0000
(20:36 +0000)
string/tester.c
patch
|
blob
|
history
diff --git
a/string/tester.c
b/string/tester.c
index
29dc82a
..
c99af1d
100644
(file)
--- a/
string/tester.c
+++ b/
string/tester.c
@@
-528,7
+528,8
@@
DEFUN(main, (argc, argv), int argc AND char **argv)
check(bcmp("abc", "def", 0) == 0, 8); /* Zero count. */
{
- char *list = "This,is,a,test", *token = NULL;
+ char text[] = "This,is,a,test";
+ char *list = text, *token = NULL;
it = "strsep";
check (!strcmp ("This", strsep (&list, ",")), 1);
check (!strcmp ("is", strsep (&list, ",")), 2);