From 0be4f033922831d7173f86004ec0a0951a40f86d Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Fri, 12 Nov 2004 04:43:08 +0000 Subject: more work on combo box --- xrdp/funcs.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xrdp/funcs.c') diff --git a/xrdp/funcs.c b/xrdp/funcs.c index 66229604..8d379fea 100644 --- a/xrdp/funcs.c +++ b/xrdp/funcs.c @@ -312,3 +312,13 @@ int remove_char_at(char* text, int index) text[len - 1] = 0; return 0; } + +/*****************************************************************************/ +int set_string(char** in_str, char* in) +{ + if (in_str == 0) + return 0; + g_free(*in_str); + *in_str = g_strdup(in); + return 0; +} -- cgit v1.2.1