diff --git a/src/rrd_client.c b/src/rrd_client.c
index 3347b82577339a9bc307fc7d149f485a16fdf0af..f271f3db56f25f5906ea1ad11d40e7e879cb47ec 100644 (file)
--- a/src/rrd_client.c
+++ b/src/rrd_client.c
break;
case RD_I_STR:
chomp(s);
- info.u_str = (char*)malloc(sizeof(char) * (strlen(s) + 1));
- strcpy(info.u_str,s);
+ info.u_str = strdup(s);
break;
case RD_I_BLO:
rrd_set_error ("rrdc_info: BLOB objects are not supported");