]> diplodocus.org Git - nmh/blobdiff - sbr/oauth_prof.c
Fix flex 2.6.1's output regarding signed/unsigned comparisons.
[nmh] / sbr / oauth_prof.c
index e0fd7584906488b0b17113352cf35a6b118989c3..ab8bc5aafc299724e9063b40040f469a49828766 100644 (file)
@@ -139,10 +139,7 @@ mh_oauth_cred_fn(const char *svc)
     free(component);
 
     if (result == NULL) {
-        result = mh_xmalloc(sizeof "oauth-" - 1
-                            + strlen(svc)
-                            + 1 /* '\0' */);
-        sprintf(result, "oauth-%s", svc);
+        result = concat("oauth-", svc, NULL);
         result_if_allocated = result;
     } else {
         result_if_allocated = NULL;