From 81f9f13a976c06cd439858ccd90907d3dd98222c Mon Sep 17 00:00:00 2001 From: nils-ohlmeier Date: Mon, 11 Dec 2006 16:35:22 +0000 Subject: [PATCH] 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) (cherry picked from commit aa3490ecd32a687bfa606c91954a2da9daa586d3) --- sipsak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sipsak.c b/sipsak.c index c370c49..39401cb 100644 --- a/sipsak.c +++ b/sipsak.c @@ -395,8 +395,8 @@ int main(int argc, char *argv[]) } else if ((strlen(optarg) == 1 && STRNCASECMP(optarg, "*", 1) == 0) || (strlen(optarg) == 4 && STRNCASECMP(optarg, "star", 4) == 0)) { - contact_uri=str_alloc(strlen(optarg)+1); - strncpy(contact_uri, optarg, strlen(optarg)); + contact_uri=str_alloc(2); + memcpy(contact_uri, "*", 1); } else { backup=str_alloc(strlen(optarg)+1);