Browse code

win32: properly handle all relative paths in makeabs

aCaB authored on 2010/03/19 10:48:12
Showing 2 changed files
... ...
@@ -140,6 +140,12 @@ static char *makeabs(const char *basepath) {
140 140
 	    free(ret);
141 141
 	    return NULL;
142 142
 	}
143
+#ifdef _WIN32
144
+	if(*basepath == '\\') {
145
+	    namelen = 2;
146
+	    basepath++;
147
+	} else
148
+#endif
143 149
 	namelen = strlen(ret);
144 150
 	snprintf(&ret[namelen], PATH_MAX - namelen, PATHSEP"%s", basepath);
145 151
     } else {
... ...
@@ -493,7 +493,7 @@
493 493
 /* #undef USE_SYSLOG */
494 494
 
495 495
 /* Version number of package */
496
-#define VERSION "devel-clamav-0.96rc1-13-g99a2d96"
496
+#define VERSION "devel-clamav-0.96rc1-16-g89e12ee"
497 497
 
498 498
 /* Version suffix for package */
499 499
 #define VERSION_SUFFIX ""