comparison nnchat.c @ 79:e36df57c5b0f

Use th_strdup() again.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 24 Dec 2008 16:03:53 +0200
parents 745f670068dc
children 335b5a74c22e
comparison
equal deleted inserted replaced
78:745f670068dc 79:e36df57c5b0f
532 532
533 th_free(tmpStr); 533 th_free(tmpStr);
534 return 0; 534 return 0;
535 } else if (!strncmp(buf, "/to ", 4)) { 535 } else if (!strncmp(buf, "/to ", 4)) {
536 th_free(setTarget); 536 th_free(setTarget);
537 setTarget = strdup(buf + 4); 537 setTarget = th_strdup(buf + 4);
538 printMsg("Set prv target to '%s'\n", setTarget); 538 printMsg("Set prv target to '%s'\n", setTarget);
539 return 0; 539 return 0;
540 } else if (!strncmp(buf, "/who", 4)) { 540 } else if (!strncmp(buf, "/who", 4)) {
541 snprintf(tmpBuf, sizeof(tmpBuf), "/listallusers"); 541 snprintf(tmpBuf, sizeof(tmpBuf), "/listallusers");
542 buf = tmpBuf; 542 buf = tmpBuf;