Enlightenment CVS committal
Author : azundris
Project : e17
Module : apps/examine
Dir : e17/apps/examine/src
Modified Files:
examine_client.c
Log Message:
* more fu
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/examine/src/examine_client.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- examine_client.c 9 Feb 2005 11:31:03 -0000 1.22
+++ examine_client.c 9 Feb 2005 11:45:25 -0000 1.23
@@ -182,20 +182,20 @@
char *ret, *tmp, *end;
if (examine_client_buf && (strlen(examine_client_buf) > 0)) {
- if(!(ret = strstr(examine_client_buf, "="))) {
+ if(!(ret = strchr(examine_client_buf, '='))) {
printf("OFFENDING STRING: %s\n", examine_client_buf);
goto done; }
ret++;
if (*ret == '"') {
ret++;
- if (end = strstr(ret, "\""))
+ if (end = strchr(ret, '\"'))
*end = '\0';
}
if (*(ret + strlen(ret) - 1) == '\n')
*(ret + strlen(ret) - 1) = '\0';
- tmp = strstr(examine_client_buf, ":");
+ tmp = strchr(examine_client_buf, ':');
*tmp = '\0';
__examine_client_theme_search_path = strdup(ret);
@@ -445,8 +445,7 @@
printf("|%s|\n",examine_client_buf);
- ret = strstr(examine_client_buf, "=");
- if (ret == NULL) {
+ if ((ret = strchr(examine_client_buf, '=')) == NULL) {
if(strcasecmp(examine_client_buf,"<undefined>"))
printf("OFFENDING STRING: %s\n", examine_client_buf);
return; }
@@ -455,14 +454,14 @@
if (*ret == '"') {
ret++;
- if (end = strstr(ret, "\""))
+ if (end = strchr(ret, '\"'))
*end = '\0';
}
if (*(ret + strlen(ret) - 1) == '\n')
*(ret + strlen(ret) - 1) = '\0';
key = examine_client_buf;
- tmp = strstr(examine_client_buf, ":");
+ tmp = strchr(examine_client_buf, ':');
*tmp = '\0';
prop = prop_list;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs