(empty log message)
@@ -109,7 +109,7 @@ | ||
109 | 109 | sprintf(str, "%s(%d) : XFREE : illegal pointer(0x%x)\n", GetFileName(file), line, (int)p); |
110 | 110 | // sprintf(str, "XFREE: %s(%d) : illegal pointer(0x%x)\n", file, line, p); |
111 | 111 | fputs(str, stream); |
112 | - g_print(str); | |
112 | + g_print("%s",str); | |
113 | 113 | /* ファイルをクローズ */ |
114 | 114 | fclose(stream); |
115 | 115 | } |
@@ -142,12 +142,12 @@ | ||
142 | 142 | if (p == NULL) { |
143 | 143 | sprintf(str, "XDUMP : all memory blocks deallcated\n"); |
144 | 144 | fputs(str, stream); |
145 | - g_print(str); | |
145 | + g_print("%s",str); | |
146 | 146 | } |
147 | 147 | else { |
148 | 148 | sprintf(str, "XDUMP : memory leaks detected [start]\n"); |
149 | 149 | fputs(str, stream); |
150 | - g_print(str); | |
150 | + g_print("%s",str); | |
151 | 151 | while (p != NULL) { |
152 | 152 | sprintf(str, "%s(%d) : memory leak(0x%x) : memory leaks [%d]\n", |
153 | 153 | p->alloc_file, |
@@ -155,7 +155,7 @@ | ||
155 | 155 | (int)p->alloc_ptr, |
156 | 156 | count++); |
157 | 157 | fputs(str, stream); |
158 | - g_print(str); | |
158 | + g_print("%s", str); | |
159 | 159 | q = p->next; |
160 | 160 | free(p); |
161 | 161 | p = q; |
@@ -162,7 +162,7 @@ | ||
162 | 162 | } |
163 | 163 | sprintf(str, "XDUMP : memory leaks detected [end]\n"); |
164 | 164 | fputs(str, stream); |
165 | - g_print(str); | |
165 | + g_print("%s",str); | |
166 | 166 | } |
167 | 167 | |
168 | 168 | /* ファイルをクローズ */ |
@@ -84,7 +84,7 @@ | ||
84 | 84 | strcpy(path, str); |
85 | 85 | cutFileName(path); |
86 | 86 | strcpy(outside_process.opsDir, path); |
87 | - chdir(path); | |
87 | + Ret = chdir(path); | |
88 | 88 | |
89 | 89 | strcpy(outside_process.opsFile, str); |
90 | 90 | outside_process.now = 0; |
@@ -106,7 +106,7 @@ | ||
106 | 106 | fclose(stream); |
107 | 107 | //g_print("osp_temp.txt があったから削除\n"); |
108 | 108 | sprintf(str, "rm %s", tempfile); |
109 | - system(str); | |
109 | + Ret = system(str); | |
110 | 110 | } |
111 | 111 | |
112 | 112 | outside_process_on = 1; |
@@ -645,7 +645,7 @@ | ||
645 | 645 | strcat(tempfile, "osp_temp.txt"); |
646 | 646 | |
647 | 647 | sprintf(str, "mv %s %s", tempfile, op->Work[op->now].keyword); |
648 | - system(str); | |
648 | + Ret = system(str); | |
649 | 649 | ops_next_go(op); |
650 | 650 | return 1; |
651 | 651 | break; |
@@ -433,6 +433,7 @@ | ||
433 | 433 | char XCode[256], YCode[256], NcCode[256], NcMode[256]; |
434 | 434 | char CCode[256], DCode[256], ECode[256], GK[256]; |
435 | 435 | FILE *stream; |
436 | + int result; | |
436 | 437 | |
437 | 438 | |
438 | 439 | if ( strstr(sagcad_user.NcPath, "CADPATH") != NULL ) |
@@ -724,7 +725,7 @@ | ||
724 | 725 | replace(path, "%s", FileName); |
725 | 726 | |
726 | 727 | command = g_locale_from_utf8(path, -1, NULL, NULL, NULL); |
727 | - system(command); | |
728 | + result = system(command); | |
728 | 729 | g_free(command); |
729 | 730 | #endif |
730 | 731 | return 1; |
@@ -265,7 +265,7 @@ | ||
265 | 265 | { |
266 | 266 | char str[256], command[256], path[256]; |
267 | 267 | // int ps = 1, |
268 | - int Ret; | |
268 | + int Ret, result; | |
269 | 269 | |
270 | 270 | #ifdef TEST |
271 | 271 | Ret = MsgBox("ps or eps", "ps File ですか", "それとも eps Fileですか", "ps", "eps", "CANCEL"); |
@@ -321,7 +321,7 @@ | ||
321 | 321 | |
322 | 322 | sprintf(command, "%s &", path); |
323 | 323 | g_print("%s\n", command); |
324 | - system(command); | |
324 | + result = system(command); | |
325 | 325 | #endif |
326 | 326 | |
327 | 327 |
@@ -333,12 +333,12 @@ | ||
333 | 333 | /* GhostView */ |
334 | 334 | if (Ret == 1) { |
335 | 335 | sprintf(command, "ghostview %s &", str); |
336 | - system(command); | |
336 | + result = system(command); | |
337 | 337 | } |
338 | 338 | /* 印刷 */ |
339 | 339 | else if (Ret == 0) { |
340 | 340 | sprintf(command, "lpr %s &", str); |
341 | - system(command); | |
341 | + result = system(command); | |
342 | 342 | } |
343 | 343 | #endif |
344 | 344 |
@@ -1281,7 +1281,8 @@ | ||
1281 | 1281 | /* New */ |
1282 | 1282 | void cmd_New(void) |
1283 | 1283 | { |
1284 | - system("sagcad &"); | |
1284 | + int result; | |
1285 | + result = system("sagcad &"); | |
1285 | 1286 | } |
1286 | 1287 | |
1287 | 1288 |