Fixing compiling on windows
authorJoshua Leung <aligorith@gmail.com>
Sun, 13 Feb 2011 06:19:15 +0000 (06:19 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 13 Feb 2011 06:19:15 +0000 (06:19 +0000)
source/blender/blenlib/intern/path_util.c

index e44e3e9..1a930e7 100644 (file)
@@ -1751,7 +1751,7 @@ void BLI_where_is_temp(char *fullname, int maxlen, int usertemp)
        if (fullname[0] == '\0') {
                char *tmp = getenv("TEMP"); /* Windows */
                if (tmp && BLI_is_dir(tmp)) {
-                       BLI_strncpy((fullname, tmp, maxlen);
+                       BLI_strncpy(fullname, tmp, maxlen);
                }
        }
 #else