]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/path.c
Remove useless multiplications with sizeof(char) and sizeof(s_char).
[empserver] / src / lib / commands / path.c
index 12ca7756613cdda555fc70536a4eac6768ffbf12..8ecea9d8aba4b9adbf672386147989cb017f723f 100644 (file)
@@ -82,7 +82,7 @@ path(void)
        return RET_FAIL;
     }
     if (!mapbuf)
-       mapbuf = malloc((WORLD_Y * MAPWIDTH(3)) * sizeof(s_char));
+       mapbuf = malloc(WORLD_Y * MAPWIDTH(3));
     if (!map) {
        map = malloc(WORLD_Y * sizeof(s_char *));
        if (map && mapbuf) {