diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-10-24 02:53:48 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-10-24 02:53:48 +0000 |
commit | ce4148445e05aaf721403c78d72df187a11c4461 (patch) | |
tree | 6814566c503fce2351fb93d6e05f72c32687f441 /gdb/hppah-nat.c | |
parent | 8f236061d95d934a70b505449f6235bbfaa90270 (diff) | |
download | gdb-ce4148445e05aaf721403c78d72df187a11c4461.zip gdb-ce4148445e05aaf721403c78d72df187a11c4461.tar.gz gdb-ce4148445e05aaf721403c78d72df187a11c4461.tar.bz2 |
Fix -Wformat for hpux.
Diffstat (limited to 'gdb/hppah-nat.c')
-rw-r--r-- | gdb/hppah-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c index c5c431d..aab5e96 100644 --- a/gdb/hppah-nat.c +++ b/gdb/hppah-nat.c @@ -443,8 +443,8 @@ child_pid_to_str (ptid_t ptid) static char buf[30]; pid_t pid = PIDGET (ptid); - /* Extra NULLs for paranoia's sake */ - sprintf (buf, "process %d\0\0\0\0", pid); + /* Extra NUL for paranoia's sake */ + sprintf (buf, "process %d%c", pid, '\0'); return buf; } @@ -464,7 +464,7 @@ hppa_tid_to_str (ptid_t ptid) pid_t tid = PIDGET (ptid); /* Extra NULLs for paranoia's sake */ - sprintf (buf, "system thread %d\0\0\0\0", tid); + sprintf (buf, "system thread %d%c", tid, '\0'); return buf; } |