Skip to content

Commit

Permalink
rtlib: dos, sys_dylib.c, set null terminator after copy
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrm committed Oct 27, 2019
1 parent 30c3a27 commit f0d868f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtlib/dos/sys_dylib.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ FBCALL void *fb_DylibLoad( FBSTRING *library )
FirstDyLibCall = 1;
}

libname[MAX_PATH-1] = '\0';
if( (library) && (library->data) ) {
snprintf( libname, MAX_PATH-1, libnameformat, library->data );
libname[MAX_PATH-1] = '\0';
fb_hConvertPath( libname );
res = dlopen( libname, RTLD_GLOBAL + RTLD_LAZY);
}
Expand Down

0 comments on commit f0d868f

Please sign in to comment.