quad_client_loop: use strdup, not asprintf
authorMichael Adam <obnox@samba.org>
Thu, 27 Aug 2009 10:09:31 +0000 (12:09 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 27 Aug 2009 10:09:31 +0000 (12:09 +0200)
Michael

quad_client_loop.c

index 5e4fb06120d6709a5ac601230e62674de91b4ea3..ffb3f7771a2343533d8d6c8cd69a1960e1312022 100644 (file)
@@ -112,7 +112,7 @@ int main(int argc, char **argv)
                        num_clients = (uint32_t)strtoul(optarg, NULL, 10);
                        break;
                case 'p':
-                       service = asprintf(&service, (const char *)optarg);
+                       service = strdup(optarg);
                        break;
                case 'd':
                        LogLevel = (int)strtol(optarg, NULL, 10);