Skip to content

Commit

Permalink
Eradicate one more sprintf().
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14763 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
xavierleroy committed May 7, 2014
1 parent bfccd68 commit 4fde434
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions asmrun/natdynlink.c
Expand Up @@ -25,9 +25,8 @@
#include <string.h>

static void *getsym(void *handle, char *module, char *name){
char *fullname = malloc(strlen(module) + strlen(name) + 5);
char *fullname = caml_strconcat(3, "caml", module, name);
void *sym;
sprintf(fullname, "caml%s%s", module, name);
sym = caml_dlsym (handle, fullname);
/* printf("%s => %lx\n", fullname, (uintnat) sym); */
free(fullname);
Expand Down

0 comments on commit 4fde434

Please sign in to comment.