瀏覽代碼

Update rexm.c

pull/5481/head
Ray 3 週之前
父節點
當前提交
5398b8c9b0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      tools/rexm/rexm.c

+ 2
- 2
tools/rexm/rexm.c 查看文件

@ -2894,8 +2894,8 @@ static void UpdateWebMetadata(const char *exHtmlPath, const char *exFilePath)
// Get example name: replace underscore by spaces // Get example name: replace underscore by spaces
strncpy(exName, GetFileNameWithoutExt(exHtmlPathCopy), 64 - 1); strncpy(exName, GetFileNameWithoutExt(exHtmlPathCopy), 64 - 1);
strncpy(exTitle, exName, 64 - 1);
for (int i = 0; (i < 256) && (exTitle[i] != '\0'); i++) { if (exTitle[i] == '_') exTitle[i] = ' '; }
strcpy(exTitle, exName);
for (int i = 0; (i < 64) && (exTitle[i] != '\0'); i++) { if (exTitle[i] == '_') exTitle[i] = ' '; }
// Get example category from exName: copy until first underscore // Get example category from exName: copy until first underscore
for (int i = 0; (exName[i] != '_'); i++) exCategory[i] = exName[i]; for (int i = 0; (exName[i] != '_'); i++) exCategory[i] = exName[i];

Loading…
取消
儲存