made star really work

git-svn-id: http://svn.berlios.de/svnroot/repos/sipsak/trunk@427 75b5f7c7-cfd4-0310-b54c-e118b2c5249a
(cherry picked from commit 1f05728491d1d9f0d998fad11afeeadc6efc25ef)
changes/49/4849/1
nils-ohlmeier 19 years ago committed by Victor Seva
parent 1e0ea08deb
commit aa3490ecd3

@ -395,8 +395,8 @@ int main(int argc, char *argv[])
} }
else if ((strlen(optarg) == 1 && STRNCASECMP(optarg, "*", 1) == 0) || else if ((strlen(optarg) == 1 && STRNCASECMP(optarg, "*", 1) == 0) ||
(strlen(optarg) == 4 && STRNCASECMP(optarg, "star", 4) == 0)) { (strlen(optarg) == 4 && STRNCASECMP(optarg, "star", 4) == 0)) {
contact_uri=str_alloc(strlen(optarg)+1); contact_uri=str_alloc(2);
strncpy(contact_uri, optarg, strlen(optarg)); memcpy(contact_uri, "*", 1);
} }
else { else {
backup=str_alloc(strlen(optarg)+1); backup=str_alloc(strlen(optarg)+1);

Loading…
Cancel
Save