Paste number 90875: diff for danielj

Paste number 90875: diff for danielj
Pasted by: pogma
When:8 months, 1 week ago
Share:Tweet this! | http://paste.lisp.org/+1Y4B
Channel:#fink
Paste contents:
Raw Source | XML | Display As
--- src/module.c.orig	2009-11-21 18:26:15.000000000 -0600
+++ src/module.c	2009-11-21 18:26:57.000000000 -0600
@@ -121,13 +121,13 @@
 		goto om_bad;
 	}
 	/* Work out the path of the module to open */
-	module_path_len = strlen(type) + 1 + strlen(name) + strlen(MODULE_FILE_SUFFIX) + 1;
+	module_path_len = strlen(type) + 1 + strlen(name) + strlen(MODULE_FILE_SUFFIX) + 1 + 2;
 	module_path = malloc( module_path_len );
 	if (module_path == NULL) {
 		error1( "Failed to allocate memory for module name: %s", strerror(errno) );
 		goto om_bad;
 	}
-	snprintf( module_path, module_path_len, "%s_%s%s", type, name, MODULE_FILE_SUFFIX );
+	snprintf( module_path, module_path_len, "./%s_%s%s", type, name, MODULE_FILE_SUFFIX );
 	/* Display the path of the module created */
 	debug1( "Module path: %s", module_path );
 

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.