X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftw.c;h=926a0392d063519d13b6566c866a9d94918219ad;hb=3cb84cf7fdc2a85f22e1ee39f0e22eac369fb1a4;hp=cbf3d610efef631c5abbbe3735708a294f0ed377;hpb=25333e11096e8e42efb14d9005739a9242132c0f;p=ptask.git diff --git a/src/tw.c b/src/tw.c index cbf3d61..926a039 100644 --- a/src/tw.c +++ b/src/tw.c @@ -234,22 +234,18 @@ static char *escape(const char *txt) void tw_modify_description(const char *uuid, const char *newdesc) { - char *str; char *opts; - str = escape(newdesc); - opts = malloc(1 + strlen(uuid) + strlen(" modify :\"") - + strlen(str) + + strlen(newdesc) + strlen("\"") + 1); - sprintf(opts, " %s modify \"%s\"", uuid, str); + sprintf(opts, " %s modify \"%s\"", uuid, newdesc); tw_exec(opts); - free(str); free(opts); }