summaryrefslogtreecommitdiff
path: root/atari/misc.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-12-21 00:56:50 +0100
committerOle Loots <ole@monochrom.net>2012-12-21 00:56:50 +0100
commitf7ee2a03876bf4a5cf66b3a433955e4e55d91362 (patch)
tree146748923e9aaa464fac29306cc51cb06ef589ec /atari/misc.c
parent3019368c93600a335445c09178c9554074c7f656 (diff)
downloadnetsurf-f7ee2a03876bf4a5cf66b3a433955e4e55d91362.tar.gz
netsurf-f7ee2a03876bf4a5cf66b3a433955e4e55d91362.tar.bz2
- started to work on settings dialog
- some WIP in treeview widgets. Changed destroy / and init handling. It requires some optimization, when the widget is closed it must remove itself from the guiwin list, for perfomance.
Diffstat (limited to 'atari/misc.c')
-rwxr-xr-xatari/misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/atari/misc.c b/atari/misc.c
index d0d4cd5c0..27c68b664 100755
--- a/atari/misc.c
+++ b/atari/misc.c
@@ -488,8 +488,7 @@ const char * file_select( const char * title, const char * name ) {
}
if( FselInput( path, tmpname, (char*)"", use_title, NULL, NULL)) {
- strncpy( fullname, path, PATH_MAX-1 );
- strncat( fullname, tmpname, PATH_MAX-strlen(fullname)-1 );
+ snprintf(fullname, PATH_MAX, "%s%s", path, tmpname);
return( (const char*)&fullname );
}
return( NULL );