Changeset 0fe3338bb0575f76a17fae81826cb8a06cc892e2
- Timestamp:
- 08/01/10 11:03:04 (22 months ago)
- Author:
- Neutron Soutmun <neo.neutron@…>
- Children:
- 6e30b688454c216e2301e6982a97c96fd8979803
- Parents:
- 02490869b15736707d50f900a6af8fc9a5fa46a2
- git-committer:
- Neutron Soutmun <neo.neutron@…> (08/01/10 11:03:04)
- Message:
-
Fix database not update
- Fix database not update due to not enough buffer space for string.
- Fix daemon that could not start on RH_DEBUG is defined (Debug mode).
- Location:
- src
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r43154f8
|
r0fe3338
|
|
| 345 | 345 | GdaConnection *connection; |
| 346 | 346 | gint res; |
| 347 | | char startsess_cmd[256]; |
| | 347 | char startsess_cmd[512]; |
| 348 | 348 | char time_str[32]; |
| 349 | 349 | char time_str2[32]; |
| … |
… |
|
| 367 | 367 | "session_timeout,bandwidth_slot_id,bandwidth_max_down," |
| 368 | 368 | "bandwidth_max_up,service_class,service_class_slot_id) " |
| 369 | | "VALUES('%s','%d','%s','%s','%s',%s,%s,%u,%lu,%lu,'%s',%lu)", |
| | 369 | "VALUES('%s','%d','%s','%s','%s',%s,%s,%u,%lu,%lu,'%s',%u)", |
| 370 | 370 | req->session_id, |
| 371 | 371 | vs->vserver_config->vserver_id, |
-
|
r91cc1f0
|
r0fe3338
|
|
| 29 | 29 | int i = 0; |
| 30 | 30 | char *env[22]; |
| | 31 | int env_size = (sizeof (env) / sizeof (char *)); |
| 31 | 32 | |
| 32 | 33 | env[0] = g_strdup("ENV_OVERRIDE=yes"); |
| … |
… |
|
| 58 | 59 | env[21] = (char *) 0; |
| 59 | 60 | |
| 60 | | for (i = 0; i < sizeof (env); i++) { |
| | 61 | for (i = 0; i < env_size; i++) { |
| 61 | 62 | if (env[i] != NULL) |
| 62 | 63 | DP("%s", env[i]); |
| … |
… |
|
| 98 | 99 | |
| 99 | 100 | |
| 100 | | for (i = 0; i < 24; i++) { |
| | 101 | for (i = 0; i < env_size; i++) { |
| 101 | 102 | g_free(env[i]); |
| 102 | 103 | } |