]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Use xmalloc() instead of malloc().
authorMartin Mares <mj@ucw.cz>
Thu, 20 Apr 2000 22:55:32 +0000 (22:55 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 20 Apr 2000 22:55:32 +0000 (22:55 +0000)
client/commands.c

index 5c60df8c8c4a4bd8d6fcc062f18a467d91d8b837..697cff6d1b9f250a3ac357cd195c6e04de5dc9e0 100644 (file)
@@ -297,7 +297,7 @@ cmd_expand(char *cmd)
       puts("No such command.");
       return NULL;
     }
-  b = malloc(strlen(n->cmd->command) + strlen(args) + 1);
+  b = xmalloc(strlen(n->cmd->command) + strlen(args) + 1);
   sprintf(b, "%s%s", n->cmd->command, args);
   return b;
 }