aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-11 12:34:04 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-11 12:34:04 +0000
commitdc593219471375bd8fb306159d90481efe3457ac (patch)
tree93011597c54027a39dc4c64094922f47b809929c
parent1c766f5c16780d7da2ca58978c6fe83839a488b9 (diff)
downloadgnunet-gtk-dc593219471375bd8fb306159d90481efe3457ac.tar.gz
gnunet-gtk-dc593219471375bd8fb306159d90481efe3457ac.zip
limit to 4 chars
-rw-r--r--src/peerinfo/gnunet-peerinfo-gtk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c
index 1a70ec24..42e44317 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk.c
@@ -241,7 +241,7 @@ peerinfo_processor (void *cls,
241 GtkListStore *ls; 241 GtkListStore *ls;
242 GtkTreeModel *tm; 242 GtkTreeModel *tm;
243 GtkTreeIter iter; 243 GtkTreeIter iter;
244 const char *npid; 244 char *npid;
245 struct GNUNET_CRYPTO_HashAsciiEncoded enc; 245 struct GNUNET_CRYPTO_HashAsciiEncoded enc;
246 struct PeerInfo *info; 246 struct PeerInfo *info;
247 GtkTreePath *path; 247 GtkTreePath *path;
@@ -258,7 +258,8 @@ peerinfo_processor (void *cls,
258 if (NULL == info) 258 if (NULL == info)
259 { 259 {
260 GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc); 260 GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc);
261 npid = (const char *) &enc; 261 npid = (char *) &enc;
262 npid[4] = '\0';
262 gtk_list_store_append (ls, &iter); 263 gtk_list_store_append (ls, &iter);
263 gtk_list_store_set (ls, &iter, 264 gtk_list_store_set (ls, &iter,
264 0, npid, 265 0, npid,