summaryrefslogtreecommitdiffstats
path: root/common/file.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-09-26 02:16:37 +0000
committerjsorg71 <jsorg71>2005-09-26 02:16:37 +0000
commit967f6592d551d9a6cc18084bd22fa83c3df3fc56 (patch)
tree693f86e09c09a814ec682fb51cb899ad82bc7d97 /common/file.c
parent9ad83a3c232a3cf3652da0c68ee97915bb435dcb (diff)
downloadxrdp-proprietary-967f6592d551d9a6cc18084bd22fa83c3df3fc56.tar.gz
xrdp-proprietary-967f6592d551d9a6cc18084bd22fa83c3df3fc56.zip
move rsa keys to a file and load at connection
Diffstat (limited to 'common/file.c')
-rw-r--r--common/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/file.c b/common/file.c
index 3189e4c8..9b44abc8 100644
--- a/common/file.c
+++ b/common/file.c
@@ -172,9 +172,9 @@ file_read_section(int fd, char* section, struct list* names,
struct list* values)
{
struct stream* s;
- char text[256];
- char name[256];
- char value[256];
+ char text[512];
+ char name[512];
+ char value[512];
char c;
int in_it;
int in_it_index;
@@ -184,7 +184,7 @@ file_read_section(int fd, char* section, struct list* names,
g_file_seek(fd, 0);
in_it_index = 0;
in_it = 0;
- g_memset(text, 0, 256);
+ g_memset(text, 0, 512);
list_clear(names);
list_clear(values);
make_stream(s);
@@ -216,7 +216,7 @@ file_read_section(int fd, char* section, struct list* names,
}
in_it = 0;
in_it_index = 0;
- g_memset(text, 0, 256);
+ g_memset(text, 0, 512);
}
else if (in_it)
{