changed a few awkward phrases in help menus
[neverball] / ball / demo.c
index 795a96c..4407e14 100644 (file)
@@ -327,7 +327,7 @@ void demo_unique(char *name)
 
     for (i = 1; i < 100; i++)
     {
-        sprintf(name, _("replay%02d"), i);
+        sprintf(name, "replay%02d", i);
 
         if (!demo_exists(name))
             return;
@@ -401,15 +401,16 @@ int demo_play_saved(void)
 
 void demo_play_save(const char *name)
 {
-    char src[PATHMAX];
-    char dst[PATHMAX];
+    char src[MAXSTR];
+    char dst[MAXSTR];
 
-    if (name && demo_exists(USER_REPLAY_FILE)
-        && strcmp(name, USER_REPLAY_FILE) != 0)
+    if (name &&
+        demo_exists(USER_REPLAY_FILE) &&
+        strcmp(name, USER_REPLAY_FILE) != 0)
     {
-        strncpy(src, config_user(USER_REPLAY_FILE), PATHMAX);
+        strcpy(src, config_user(USER_REPLAY_FILE));
         strcat(src, REPLAY_EXT);
-        strncpy(dst, config_user(name), PATHMAX);
+        strcpy(dst, config_user(name));
         strcat(dst, REPLAY_EXT);
 
 #ifdef _WIN32