summaryrefslogtreecommitdiff
path: root/setvalues.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-05-09 11:17:38 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-05-09 11:17:45 -0700
commit9ffefd5b3d38e9ed2b5ed59bc50e8a7da761fb77 (patch)
tree04c125d8c2fc3a8786fff8168756ca3f12c1de8c /setvalues.c
parent15f9d88e13bda2617c05c278a1ca9f6ce26df479 (diff)
Replace XtMalloc+sprintf pair with XtAsprintf call
Raises required version of libXt to >= 1.0.99.1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'setvalues.c')
-rw-r--r--setvalues.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/setvalues.c b/setvalues.c
index c2ff3d2..a28bcf9 100644
--- a/setvalues.c
+++ b/setvalues.c
@@ -99,8 +99,7 @@ GetResourceValueForSetValues(WNode *node, unsigned short *size)
* the resource database.
*/
- temp = XtMalloc(sizeof(char) * (strlen(ptr) + strlen(RESOURCE_NAME) + 2));
- sprintf(temp, "%s:%s", RESOURCE_NAME, ptr);
+ XtAsprintf(&temp, "%s:%s", RESOURCE_NAME, ptr);
XrmPutLineResource(&db, temp);
XtFree(temp);