Mercurial > pidgin
comparison libpurple/plugins/log_reader.c @ 17460:8622d1233e0a
Using g_strstr_len(x, strlen(x), ...) is dumb.
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Mon, 04 Jun 2007 00:55:19 +0000 |
| parents | 425bc4362d8c |
| children | 36cb252e9f86 |
comparison
equal
deleted
inserted
replaced
| 17459:425bc4362d8c | 17460:8622d1233e0a |
|---|---|
| 1482 * "> | 1482 * "> |
| 1483 * Then, replace the next " " (or add this if the end-of-line is reached) with: | 1483 * Then, replace the next " " (or add this if the end-of-line is reached) with: |
| 1484 * </a> | 1484 * </a> |
| 1485 */ | 1485 */ |
| 1486 link_temp_line = NULL; | 1486 link_temp_line = NULL; |
| 1487 while ((link = g_strstr_len(line, strlen(line), "(Link: "))) { | 1487 while ((link = strstr(line, "(Link: "))) { |
| 1488 GString *temp; | 1488 GString *temp; |
| 1489 | 1489 |
| 1490 *link = '\0'; | 1490 *link = '\0'; |
| 1491 link++; | 1491 link++; |
| 1492 | 1492 |
