瀏覽代碼

* Added missing \0 at end of strings (hahaha vieux porc).

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/cacamoo/trunk@1253 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 18 年之前
父節點
當前提交
c9a1fa3851
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/main.c

+ 2
- 1
src/main.c 查看文件

@@ -364,7 +364,7 @@ char * make_caca_from_file(unsigned int *size)
perror("fread");
return NULL;
}
temp[s] = '\0';

temp = remove_comments(temp);
temp = remove_slashes(temp);
@@ -705,6 +705,7 @@ char *wrap_string(char *buffer, unsigned int width, unsigned int *max_width, int
scaled[t++] = ' ';
for(i = 0; i < *max_width+2; i++)
scaled[t++] = '-';
scaled[t] = '\0';

free(ret);
ret = NULL;


Loading…
取消
儲存